Documentation

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

setCache() Make it so that the page does not get cached void
set304Cache() Set any cache headers that are wanted on a 304 response void

Methods

setCache()

Make it so that the page does not get cached

public setCache( $context : Context ) : void
Parameters
$context : Context

The context object

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

Search results