Replies: 11 comments
-
Do you mean to disable the cache tags only for certain operations? |
Beta Was this translation helpful? Give feedback.
-
Looking at the code, this is not currently possible. |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
I don't see the support for disabling cache tags for a certain resource either. These should be easy to add. PRs welcome! |
Beta Was this translation helpful? Give feedback.
-
Hello @teohhanhui
Do you think one of these solutions would be apropriate ? Thanks ! |
Beta Was this translation helpful? Give feedback.
-
Hello @teohhanhui What do you think about the solutions I suggested? Do you have a better idea to fix this? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hello @teohhanhui Were you able to have a look at the solution I suggested? Looking forward to have your feedbacks and other ideas! Thanks! |
Beta Was this translation helpful? Give feedback.
-
@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)%'
|
Beta Was this translation helpful? Give feedback.
-
Ok thanks ! |
Beta Was this translation helpful? Give feedback.
-
@oussj subject mentioned in #3168, where I do heavy work but not in a situation where I can benefit of an env var. |
Beta Was this translation helpful? Give feedback.
-
hello @teohhanhui |
Beta Was this translation helpful? Give feedback.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions