\DynamicCache
Handles on the fly caching of pages
- Author: Damian Mooyman
Synopsis
class DynamicCache
extends Object
implements
Flushable
{
- // members
- protected static DynamicCache $instance;
- // methods
- public static void flush()
- public void __call()
- public static DynamicCache inst()
- protected boolean enabled()
- protected boolean headersAllowCaching()
- protected void yieldControl()
- protected Zend_Cache_Core getCache()
- protected string getCacheKey()
- protected void presentCachedResult()
- protected void cacheResult()
- public void clear()
- protected array getCacheableHeaders()
- public void run()
Hierarchy
Extends
- Object
Implements
- Flushable
Members
protected
- $instance
—
DynamicCache
Instance of DynamicCache
Methods
protected
- cacheResult() — Save a page result into the cache
- enabled() — Determine if the cache should be enabled for the current request
- getCache() — Returns the caching factory
- getCacheKey() — Determines identifier by which this page should be identified, given a specific url
- getCacheableHeaders() — Determine which already sent headers should be cached
- headersAllowCaching() — Determine if the specified headers permit this page to be cached
- presentCachedResult() — Sends the cached value to the browser, including any necessary headers
- yieldControl() — Returns control of page rendering to SilverStripe