Is it possible to disable symfony caching per request

If a certain condition is met, is it possible to tell symfony not to cache the current request? I know the configuration flag contextual, but this is an action, not partial or component, so I don’t think it applies.

Context: I am running a multisite CMS. Each site can have several domain names associated with it, but one of them is set as primary. This is a request for a page with an alternative domain name, it is sent to the primary. But the action is cached, so when the same URL is available, it serves for caching instead of redirecting.

+3
source share
1 answer
+1

Source: https://habr.com/ru/post/1769008/


All Articles