27 $this->CONFIG = $CONFIG;
100 return (
bool)
_elgg_services()->config->get(
'simplecache_enabled');
142 if (!isset($this->CONFIG->views->simplecache) || !is_array($this->CONFIG->views->simplecache)) {
146 _elgg_rmdir(
"{$this->CONFIG->dataroot}views_simplecache");
147 mkdir(
"{$this->CONFIG->dataroot}views_simplecache");
151 $this->CONFIG->lastcache = $time;
164 if (!defined(
'UPGRADING') && empty($this->CONFIG->lastcache)) {
165 $this->CONFIG->lastcache = (int)
_elgg_services()->datalist->get(
'simplecache_lastupdate');
__construct()
Constructor.
elgg_invalidate_simplecache()
Deletes all cached views in the simplecache and sets the lastcache and lastupdate time to 0 for every...
elgg_register_simplecache_view($view_name)
Registers a view to simple cache.
elgg_register_external_view($view, $cacheable=false)
Registers a view as being available externally (i.e.
isEnabled()
Is simple cache enabled.
disable()
Disables the simple cache.
init()
Set up $CONFIG appropriately on engine boot.
getRoot()
Get the base url for simple cache requests.
invalidate()
Deletes all cached views in the simplecache and sets the lastcache and lastupdate time to 0 for every...
enable()
Enables the simple cache.
elgg_get_viewtype()
Return the current view type.
registerView($view_name)
Registers a view to simple cache.
elgg global
Pointer to the global context.
_elgg_get_simplecache_root()
Get the base url for simple cache requests.
elgg_is_simplecache_enabled()
Is simple cache enabled.
_elgg_rmdir($dir)
Recursively deletes a directory, including all hidden files.