Releases
1.2.0
Compare
Sorry, something went wrong.
No results found
eluhr
released this
26 Mar 12:19
Added
invalidateCache(string $path) added to HttpClientInterface
Hierarchical TagDependency tags invalidating a parent path (e.g. /posts) also clears all child entries (e.g. /posts/1)
15 cache tests covering keys, tags, invalidation, and hierarchical cascading
Changed
Mutating methods (POST, PATCH, DELETE) in HttpClient now automatically invalidate the cache for the request path
Resource::$cacheInvalidationPaths now only handles cross-resource invalidation; per-path invalidation is handled by HttpClient
Cache keys include query parameters different parameter combinations are cached independently
Fixed
Requests to the same endpoint with different parameters (e.g. ?expand=comments) no longer return the first cached variant
Upgrade Notes
No configuration changes required
Existing cache entries will simply miss on first request after upgrade
Resources no longer need to manually invalidate the request path HttpClient handles it automatically
HttpClientInterface now declares invalidateCache(string $path) custom implementations must add this method
You can’t perform that action at this time.