Allow disabling Guest Page Cache via templates

Kirby

Well-known member
Currently, guest page cache can be limited to certain routes via config.php.

It is also possible to disable it at runtime by setting \XF\Pub\App::$allowPageCache = false;.

It would be nice if some functionality could be exposed to set this from templates, this would allow end users to easily disable guest page cache without requiring (complex) Add-ons.

 
Upvote 1
Top