180 _elgg_services()->events->triggerSequence(
'cache:invalidate',
'system');
193 _elgg_services()->events->triggerSequence(
'cache:clear',
'system');
208 _elgg_services()->events->triggerSequence(
'cache:purge',
'system');
219 if (!is_dir($simplecache_path)) {
224 $symlink_path =
"{$root_path}cache";
226 return is_dir($symlink_path) && realpath($simplecache_path) === realpath($symlink_path);
244 $symlink_path =
"{$root_path}cache";
246 if (is_dir($symlink_path)) {
252 if (!is_dir($simplecache_path)) {
254 mkdir($simplecache_path, 0755,
true);
257 symlink($simplecache_path, $symlink_path);
263 if (is_dir($symlink_path)) {
264 unlink($symlink_path);
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_get_asset_path()
Get the asset cache directory path for this installation, ending with slash.
_elgg_symlink_cache()
Symlinks /cache directory to views simplecache directory.
elgg_disable_system_cache()
Disables the system disk cache.
elgg_get_system_cache()
Elgg cache Cache file interface for caching data.
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
elgg_invalidate_caches()
Invalidate all the registered caches.
elgg_purge_caches()
Purge all the registered caches.
if(!$entity instanceof\ElggUser) $data
if(!empty($avatar)&&!$avatar->isValid()) elseif(empty($avatar)) if(!$owner->saveIconFromUploadedFile('avatar')) if(!elgg_trigger_event('profileiconupdate', $owner->type, $owner)) $view
elgg_delete_system_cache(string $type)
Deletes the contents of a system cache.
elgg_get_root_path()
Get the project path (where composer is installed), ending with slash.
elgg_save_system_cache(string $type, $data, int $expire_after=null)
Saves a system cache.
elgg_is_simplecache_enabled()
Is simple cache enabled.
elgg_disable_simplecache()
Disables the simple cache.
elgg_is_system_cache_enabled()
Is system cache enabled.
elgg_load_system_cache(string $type)
Retrieve the contents of a system cache.
_elgg_services()
Get the global service provider.
elgg_register_simplecache_view(string $view_name)
Registers a view to simple cache.
elgg_enable_simplecache()
Enables the simple cache.
elgg_get_simplecache_url(string $view)
Get the URL for the cached view.
elgg_clear_caches()
Clear all the registered caches.