Skip to content

fix(httpcache): purge once per request - #8869

Merged
soyuka merged 2 commits into
api-platform:mainfrom
soyuka:fix/http-cache-single-purge
Nov 24, 2026
Merged

soyuka merged 2 commits into
api-platform:mainfrom
soyuka:fix/http-cache-single-purge

Conversation

@soyuka

@soyuka soyuka commented Nov 24, 2026

Copy link
Copy Markdown
Member
Q A
Branch? main
Tickets follow-up of #7970
License MIT

With invalidation enabled, a write purged twice: the Doctrine/Eloquent
listener on flush, then PurgeTagsProcessor with the provider tags.

A BufferedPurger now decorates the purger. During an HTTP request it
collects tags and purges once on kernel.response (Symfony) or
RequestHandled (Laravel), still before the response is sent. Outside a
request (console, messenger) purges stay immediate.

@soyuka
soyuka merged commit 5cb0849 into api-platform:main Nov 24, 2026
105 of 117 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant