$blog_js = elgg_get_simplecache_url('js', 'blog/save_draft'); elgg_register_js('elgg.blog', $blog_js); elgg_load_js('elgg.blog');
<?php
}
}
}
}
}
}
}
}
}
if (preg_match(
'~(?:^|/)(css|js)(?:$|/)~',
$view,
$m)) {
} else {
return 'unknown';
}
}
}
}
}
$files = array_diff(scandir($dir), array(
'.',
'..'));
if (is_dir("$dir/$file")) {
} else {
unlink("$dir/$file");
}
}
return rmdir($dir);
}
}
}
$events->registerHandler('ready', 'system', '_elgg_cache_init');
};
_elgg_cache_init()
Initializes the simplecache lastcache variable and creates system cache files when appropriate.
elgg_reset_system_cache()
Reset the system cache by deleting the caches.
elgg_invalidate_simplecache()
Deletes all cached views in the simplecache and sets the lastcache and lastupdate time to 0 for every...
elgg_load_system_cache($type)
Retrieve the contents of a system cache.
_elgg_get_view_filetype($view)
Returns the type of output expected from the view.
elgg_is_simplecache_enabled()
Is simple cache enabled.
_elgg_rmdir($dir)
Recursively deletes a directory, including all hidden files.
elgg_disable_system_cache()
Disables the system disk cache.
_elgg_get_simplecache_root()
Get the base url for simple cache requests.
elgg_enable_simplecache()
Enables the simple cache.
elgg_disable_simplecache()
Disables the simple cache.
elgg_save_system_cache($type, $data)
Saves a system cache.
elgg_get_system_cache()
Returns an \ElggCache object suitable for caching system information.
elgg_get_simplecache_url($type, $view)
elgg_register_simplecache_view($view_name)
Registers a view to simple cache.
elgg_enable_system_cache()
Enables the system disk cache.