I like to have Kirby’s pages cache on in most of my projects (not staticache!).
Is there a way to intervene in Kirby’s bootstrap (via a e.g. a hook) to not return the cached version from the pages cache via some conditional?
E.g. in pseudocode:
Request arrives at webserver and Kirby starts bootstrap process
Somewhere I’ld like to add if (true) { "do not return from pages cache, but re-render page" }
Kirby continues with bootstrap but does not return the page from the pages cache, but acts as if the pages cache is not enabled
FYI: I know there are things in place at the core to e.g. discard pages cache when Cookies are used, when there are checks for active user, or when there’s an “Authorization request header”.
i think checking for the header and calling useCookie before the render should work. this should trigger the usesCookie() check as described in the docs thus disabling the caching.