| Elgg
    Version 2.3
    | 
WARNING: API IN FLUX. More...
| Public Member Functions | |
| __construct (Config $config, Datalist $datalist, Views $views) | |
| Constructor.  More... | |
| registerView ($view_name) | |
| Registers a view to simple cache.  More... | |
| getUrl ($view, $subview='') | |
| Get the URL for the cached view.  More... | |
| getRoot () | |
| Get the base url for simple cache requests.  More... | |
| isEnabled () | |
| Is simple cache enabled.  More... | |
| enable () | |
| Enables the simple cache.  More... | |
| disable () | |
| Disables the simple cache.  More... | |
| invalidate () | |
| Deletes all cached views in the simplecache and sets the lastcache and lastupdate time to 0 for every valid viewtype.  More... | |
| init () | |
| Set up config appropriately on engine boot.  More... | |
WARNING: API IN FLUX.
DO NOT USE DIRECTLY.
@access private
Definition at line 16 of file SimpleCache.php.
| Elgg\Cache\SimpleCache::disable | ( | ) | 
Disables the simple cache.
Definition at line 152 of file SimpleCache.php.
| Elgg\Cache\SimpleCache::enable | ( | ) | 
Enables the simple cache.
Definition at line 138 of file SimpleCache.php.
| Elgg\Cache\SimpleCache::getRoot | ( | ) | 
Get the base url for simple cache requests.
Definition at line 111 of file SimpleCache.php.
| Elgg\Cache\SimpleCache::getUrl | ( | $view, | |
| $subview = '' | |||
| ) | 
Get the URL for the cached view.
Recommended usage is to just pass the entire view name as the first and only arg:
For backwards compatibility with older versions of Elgg, you can also pass "js" or "css" as the first arg, with the rest of the view name as the second arg:
This automatically registers the view with Elgg's simplecache.
| string | $view | The full view name | 
| string | $subview | If the first arg is "css" or "js", the rest of the view name | 
Definition at line 86 of file SimpleCache.php.
| Elgg\Cache\SimpleCache::init | ( | ) | 
Set up config appropriately on engine boot.
Definition at line 192 of file SimpleCache.php.
| Elgg\Cache\SimpleCache::invalidate | ( | ) | 
Deletes all cached views in the simplecache and sets the lastcache and lastupdate time to 0 for every valid viewtype.
Definition at line 177 of file SimpleCache.php.
| Elgg\Cache\SimpleCache::isEnabled | ( | ) | 
| Elgg\Cache\SimpleCache::registerView | ( | $view_name | ) | 
Registers a view to simple cache.
Simple cache is a caching mechanism that saves the output of a view and its extensions into a file. If the view is called by the engine/handlers/cache_handler.php file, the Elgg engine will not be loaded and the contents of the view will returned from file.
| string | $view_name | View name | 
Definition at line 57 of file SimpleCache.php.