SilverStripe\ControllerPolicy\PageControlledPolicy
This extension leverages the CachingPolicy's ability to customise the max-age per originator.
The configuration option is surfaced to the CMS UI. The extension needs to be added
to the object related to the policed controller.
Synopsis
class PageControlledPolicy
extends DataExtension
{
- // members
- private static array $db = ;
- // methods
- public int|null getCacheAge()
- public void updateCMSFields()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $db — array
Methods
public
- getCacheAge() — Extension point for the CachingPolicy.
- updateCMSFields()