Skip to content
This repository was archived by the owner on Jan 31, 2026. It is now read-only.

Comments

fix cache race condition#4

Open
Schlaefer wants to merge 1 commit intopschmitt:masterfrom
Schlaefer:patch-1
Open

fix cache race condition#4
Schlaefer wants to merge 1 commit intopschmitt:masterfrom
Schlaefer:patch-1

Conversation

@Schlaefer
Copy link

Problem: Assume a page is uncached (by build-in phpFastCache page-cache). Then a request for the tag-index-page comes in. On this request the page gets cached with the meta template set to "tag". If the cached page is visited afterwards it is served with the wrong "tag" template.

Solution: move the setting of the template for the tag-page later in the cycle so that it's not cached as meta property.

Problem: Assume a page is uncached (by build-in phpFastCache page-cache). Then a request for the tag-index-page comes in. On this request the page gets cached with the meta `template` set to "tag". If the cached page is visited afterwards it is served with the wrong "tag" template.

Solution: move the setting of the template for the tag-page later in the cycle so that it's not cached as meta property.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant