SilverStripe\VersionFeed\Filters\CachedContentFilter
Caches results of a callback
Synopsis
class CachedContentFilter
extends ContentFilter
{
- // members
- private static boolean $cache_enabled = true;
- // Inherited members from ContentFilter
- protected ContentFilter $nestedContentFilter;
- // methods
- public void getContent()
- // Inherited methods from ContentFilter
- public void __construct()
- protected CacheInterface getCache()
- public mixed getContent()
Hierarchy
Members
private
- $cache_enabled
—
boolean
Enable caching
protected
- $nestedContentFilter
—
SilverStripe\VersionFeed\Filters\ContentFilter
Nested content filter
Methods
public
Inherited from SilverStripe\VersionFeed\Filters\ContentFilter
protected
- getCache() — Gets the cache to use
public
- getContent() — Evaluates the result of the given callback