feat(httpcache): introduce PurgeTagProviderInterface extension point#7970
Open
guillaumedelre wants to merge 1 commit into
Open
feat(httpcache): introduce PurgeTagProviderInterface extension point#7970guillaumedelre wants to merge 1 commit into
guillaumedelre wants to merge 1 commit into
Conversation
Contributor
Author
|
The associated documentation PR is available at api-platform/docs#2282. |
PurgeHttpCacheListener cannot invalidate sub-resource collection IRIs
such as /parents/{id}/children because it lacks the parent uri_variables
when processing the child entity. The new PurgeTagProviderInterface
lets users plug in custom tag collection strategies for these cases.
Symfony: implementing PurgeTagProviderInterface is sufficient; the
registerForAutoconfiguration hook tags the service automatically with
api_platform.http_cache.purge_tag_provider. Laravel: bind implementations
and tag them with PurgeTagProviderInterface::class via $app->tag().
Signed-off-by: Guillaume Delré <delre.guillaume@gmail.com>
851f135 to
daa7ad5
Compare
Member
Contributor
Author
|
Sorry for the ping, I've made it because it's in the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #7965
Documentation
api-platform/docs#2282
Test plan