Skip to content

fix(httpcache): keep purging relations after a skipped one - #8738

Merged
soyuka merged 1 commit into
api-platform:5.0from
soyuka:fix/purge-listener-skip-relation
Oct 19, 2026
Merged

soyuka merged 1 commit into
api-platform:5.0from
soyuka:fix/purge-listener-skip-relation

Conversation

@soyuka

@soyuka soyuka commented Oct 19, 2026

Copy link
Copy Markdown
Member
Q A
Branch? 5.0
Tickets ∅
License MIT
Doc PR ∅

PurgeHttpCacheListener::gatherRelationTags() used return where it meant continue: the first association it skipped (non-resource target, unreadable property, ObjectMapper target without mapping) stopped the loop, so every association declared after it was never purged. For example, an entity with a non-resource relation declared before a resource relation kept serving the stale related resource from the cache.

gatherRelationTags() returned on the first association it had to skip
(non-resource target, unreadable property, unmapped ObjectMapper
target), so the tags of every later association were never purged.
@soyuka
soyuka merged commit db299e9 into api-platform:5.0 Oct 19, 2026
116 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