188 _elgg_services()->logger->warn(__FUNCTION__ .
' called with empty $dir');
191 $files = array_diff(scandir($dir), array(
'.',
'..'));
194 if (is_dir(
"$dir/$file")) {
197 unlink(
"$dir/$file");
265 $events->registerHandler(
'ready',
'system',
'_elgg_cache_init');
268 $events->registerHandler(
'cache:flush',
'system',
'elgg_reset_system_cache');
269 $events->registerHandler(
'cache:flush',
'system',
'elgg_invalidate_simplecache');
elgg_enable_system_cache()
Enables the system disk cache.
elgg_reset_system_cache()
Reset the system cache by deleting the caches.
_elgg_is_cache_symlinked()
Checks if /cache directory has been symlinked to views simplecache directory.
_elgg_cache_init()
Initializes the simplecache lastcache variable and creates system cache files when appropriate...
if(!array_key_exists($filename, $text_files)) $file
_elgg_invalidate_cache_for_entity($entity_guid)
Invalidate entity cache.
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_simplecache_url($view, $subview= '')
Get the URL for the cached view.
elgg_get_system_cache()
Returns an object suitable for caching system information.
elgg_get_cache_path()
Get the cache directory path for this installation.
elgg_get_root_path()
Get the root directory path for this installation.
_elgg_rmdir($dir, $empty=false)
Recursively deletes a directory, including all hidden files.
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.
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_is_system_cache_enabled()
Is system cache enabled.
elgg_enable_simplecache()
Enables the simple cache.
foreach($resources as $id=> $href) if(!empty($resources_html)) $files
elgg_flush_caches()
Flush all the registered caches.