Skip to content

Avoid throwing from the TraceableCacheAdapterTrait::prune() and TraceableCacheAdapterTrait::reset() methods when the decorated adapter doesn't implement the respective interfaces #543

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 22, 2021

Conversation

ste93cry
Copy link
Contributor

Fixes #542 by avoiding to throw from the TraceableCacheAdapterTrait::prune() and TraceableCacheAdapterTrait::reset() methods if the decorated adapter doesn't implement the respective interfaces

@ste93cry ste93cry added this to the 4.2 milestone Aug 18, 2021
@ste93cry ste93cry requested a review from Jean85 August 18, 2021 11:20
…rated cache adapter doesn't implement them
@ste93cry ste93cry force-pushed the fix-cache-adapter-throwing-when-pruning branch from 0995453 to c7d8f54 Compare August 18, 2021 11:27
@ste93cry ste93cry merged commit f2df979 into master Aug 22, 2021
@ste93cry ste93cry deleted the fix-cache-adapter-throwing-when-pruning branch August 22, 2021 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot prune cache in symfony because TraceableCacheAdapter does not implements PruneableInterface
2 participants