149 if (preg_match(
'~(?:^|/)(css|js)(?:$|/)~',
$view,
$m)) {
200 $files = array_diff(scandir($dir), array(
'.',
'..'));
202 foreach (
$files as $file) {
203 if (is_dir(
"$dir/$file")) {
206 unlink(
"$dir/$file");
236 $events->registerHandler(
'ready',
'system',
'_elgg_cache_init');
elgg_enable_system_cache()
Enables the system disk cache.
elgg_reset_system_cache()
Reset the system cache by deleting the caches.
_elgg_cache_init()
Initializes the simplecache lastcache variable and creates system cache files when appropriate...
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_disable_system_cache()
Disables the system disk cache.
elgg_get_system_cache()
Returns an object suitable for caching system information.
_elgg_get_view_filetype($view)
Returns the type of output expected from the view.
elgg_get_simplecache_url($type, $view)
_elgg_get_simplecache_root()
Get the base url for simple cache requests.
elgg_load_system_cache($type)
Retrieve the contents of a system cache.
elgg_is_simplecache_enabled()
Is simple cache enabled.
elgg_disable_simplecache()
Disables the simple cache.
elgg_save_system_cache($type, $data)
Saves a system cache.
_elgg_rmdir($dir)
Recursively deletes a directory, including all hidden files.
elgg_enable_simplecache()
Enables the simple cache.