\CacheableData
Warning: The API surface of a cacheable object differs from its SilverStripe core counterpart. While developers have the opportunity to fine-tune what properties and methods are cached via YML config (See README) do not rely on core methods always being callable.
- Author: Deviate Ltd 2014-2015 http://www.deviate.net.nz
Synopsis
class CacheableData
extends ViewableData
{
- // members
- private static array $cacheable_fields = ;
- private static array $cacheable_functions = ;
- // methods
- public array get_cacheable_fields()
- public array get_cacheable_functions()
- public array CachedNavigation()
- public abstract void canView()
- public boolean exists()
- public mixed extendedCan()
- public DataObject NonCachedData()
- public string Debug()
- public string debug_simple()
- public boolean hasFluent()
Hierarchy
Extends
- ViewableData
Tasks
Line | Task |
---|---|
191 | In case of the cached object is a CachableSiteConfig object,it doesn't now has an getChildren, |
Members
private
- $cacheable_fields — array
- $cacheable_functions — array
Methods
public
- Debug() — Template function for debugging. Allows you to see at-a-glance, the fields, functions and child nodes held in the Object-Cache about the current object.
- NonCachedData()
- canView()
- debug_simple()
- exists() — Returns true if this object "exists", i.e., has a sensible value.
- extendedCan()
- get_cacheable_fields()
- get_cacheable_functions()
- hasFluent() — Whether or not the Fluent extension is present and installed correctly.