-
-
Notifications
You must be signed in to change notification settings - Fork 856
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
is exists anyway to disable cache invalidation in runtime? #2926
Comments
Do you mean to disable the cache tags only for certain operations? |
Looking at the code, this is not currently possible. |
No, i want to disable cache tags for certain resource or for all resource in certain console commands.
I check code and didn't saw anything, maybe we have this feature in future? |
I don't see the support for disabling cache tags for a certain resource either. These should be easy to add. PRs welcome! |
Hello @teohhanhui
Do you think one of these solutions would be apropriate ? Thanks ! |
Hello @teohhanhui What do you think about the solutions I suggested? Do you have a better idea to fix this? Thanks! |
Hello @teohhanhui Were you able to have a look at the solution I suggested? Looking forward to have your feedbacks and other ideas! Thanks! |
@oussj Thanks for the suggestions, but I don't think they're the right ones for this case. 😄 If you want to disable cache purging for a certain console command, that should already be possible by using e.g. api_platform:
http_cache:
invalidation:
enabled: '%env(bool:CACHE_INVALIDATION_ENABLED)%'
|
Ok thanks ! |
hello @teohhanhui |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hi, I have some command that do heavy work, but for some reason i don't need to purge cache,
I want to disable cache invalidation for those commands, i removed
PurgeHttpCacheListener
listener from entityManager.is exists anyway to disable cache invalidation by calling a service method?
The text was updated successfully, but these errors were encountered: