26 $this->CONFIG = $CONFIG;
43 static $FILE_PATH_CACHE;
45 if (!$FILE_PATH_CACHE) {
46 $FILE_PATH_CACHE = new \ElggFileCache($this->CONFIG->dataroot .
'system_cache/');
49 return $FILE_PATH_CACHE;
72 if ($this->CONFIG->system_cache_enabled) {
89 if ($this->CONFIG->system_cache_enabled) {
91 $cached_data = $cache->load(
$type);
113 $this->CONFIG->system_cache_enabled = 1;
129 $this->CONFIG->system_cache_enabled = 0;
142 $this->CONFIG->system_cache_loaded =
false;
144 $this->CONFIG->views = new \stdClass();
146 if (!is_string(
$data)) {
149 $this->CONFIG->views->locations = unserialize(
$data);
152 if (!is_string(
$data)) {
155 $this->CONFIG->view_types = unserialize(
$data);
157 $this->CONFIG->system_cache_loaded =
true;
168 if ($this->CONFIG->system_cache_enabled && !$this->CONFIG->system_cache_loaded) {
173 if ($this->CONFIG->system_cache_enabled && !$this->CONFIG->i18n_loaded_from_cache) {
175 foreach ($this->CONFIG->translations as
$lang => $map) {
elgg_reset_system_cache()
Reset the system cache by deleting the caches.
reset()
Reset the system cache by deleting the caches.
elgg_get_system_cache()
Returns an object suitable for caching system information.
if(!$autoload_available) _elgg_services()
__construct()
Constructor.
enable()
Enables the system disk cache.
elgg global
Pointer to the global context.
loadAll()
Loads the system cache during engine boot.
save($type, $data)
Saves a system cache.
elgg_load_system_cache($type)
Retrieve the contents of a system cache.
elgg_save_system_cache($type, $data)
Saves a system cache.
init()
Initializes the simplecache lastcache variable and creates system cache files when appropriate...
disable()
Disables the system disk cache.
load($type)
Retrieve the contents of a system cache.