Elgg
Version 2.3
|
Public Member Functions | |
__construct (ElggFileCache $cache, Config $config, Datalist $datalist) | |
Constructor. More... | |
reset () | |
Reset the system cache by deleting the caches. More... | |
save ($type, $data) | |
Saves a system cache. More... | |
load ($type) | |
Retrieve the contents of a system cache. More... | |
isEnabled () | |
Is system cache enabled. More... | |
enable () | |
Enables the system disk cache. More... | |
disable () | |
Disables the system disk cache. More... | |
loadAll () | |
Loads the system cache during engine boot. More... | |
init () | |
Initializes the simplecache lastcache variable and creates system cache files when appropriate. More... | |
Definition at line 18 of file SystemCache.php.
Elgg\Cache\SystemCache::__construct | ( | ElggFileCache | $cache, |
Config | $config, | ||
Datalist | $datalist | ||
) |
Constructor.
ElggFileCache | $cache | Elgg disk cache |
Config | $config | Elgg config |
Datalist | $datalist | Elgg datalist |
Definition at line 43 of file SystemCache.php.
Elgg\Cache\SystemCache::disable | ( | ) |
Disables the system disk cache.
Uses the 'system_cache_enabled' datalist with a boolean value. Resets the system cache.
Definition at line 121 of file SystemCache.php.
Elgg\Cache\SystemCache::enable | ( | ) |
Enables the system disk cache.
Uses the 'system_cache_enabled' datalist with a boolean value. Resets the system cache.
Definition at line 107 of file SystemCache.php.
Elgg\Cache\SystemCache::init | ( | ) |
Initializes the simplecache lastcache variable and creates system cache files when appropriate.
private
Definition at line 165 of file SystemCache.php.
Elgg\Cache\SystemCache::isEnabled | ( | ) |
Elgg\Cache\SystemCache::load | ( | $type | ) |
Retrieve the contents of a system cache.
string | $type | The type of cache to load |
Definition at line 79 of file SystemCache.php.
Elgg\Cache\SystemCache::loadAll | ( | ) |
Loads the system cache during engine boot.
Definition at line 133 of file SystemCache.php.
Elgg\Cache\SystemCache::reset | ( | ) |
Reset the system cache by deleting the caches.
Definition at line 54 of file SystemCache.php.
Elgg\Cache\SystemCache::save | ( | $type, | |
$data | |||
) |
Saves a system cache.
string | $type | The type or identifier of the cache |
string | $data | The data to be saved |
Definition at line 65 of file SystemCache.php.