NoCache
Adds functions for dealing with various cache control circumstances.
If you add code here then these will apply to all pages. You can override these functions if you want to have special behaviour for a particular page.
Table of Contents
- set304Cache() : void
- Set any cache headers that are wanted on a 304 response
- setCache() : void
- Make it so that the page does not get cached
Methods
set304Cache()
Set any cache headers that are wanted on a 304 response
public
set304Cache(Context $context) : void
Parameters
- $context : Context
-
The context object for the site
Return values
void —setCache()
Make it so that the page does not get cached
public
setCache(Context $context) : void
Parameters
- $context : Context
-
The context object