|
Elgg
Version 2.3
|
Go to the source code of this file.
Namespaces | |
| Elgg\Core | |
| Activate a plugin or plugins. | |
Functions | |
| elgg_get_system_cache () | |
| Returns an \ElggCache object suitable for caching system information. More... | |
| elgg_reset_system_cache () | |
| Reset the system cache by deleting the caches. More... | |
| elgg_save_system_cache ($type, $data) | |
| Saves a system cache. More... | |
| elgg_load_system_cache ($type) | |
| Retrieve the contents of a system cache. More... | |
| elgg_is_system_cache_enabled () | |
| Is system cache enabled. More... | |
| elgg_enable_system_cache () | |
| Enables the system disk cache. More... | |
| elgg_disable_system_cache () | |
| Disables the system disk cache. More... | |
| elgg_register_simplecache_view ($view_name) | |
| Registers a view to simple cache. More... | |
| elgg_get_simplecache_url ($view, $subview='') | |
| Get the URL for the cached view. More... | |
| elgg_is_simplecache_enabled () | |
| Is simple cache enabled. More... | |
| elgg_enable_simplecache () | |
| Enables the simple cache. More... | |
| elgg_disable_simplecache () | |
| Disables the simple cache. More... | |
| _elgg_rmdir ($dir, $empty=false) | |
| Recursively deletes a directory, including all hidden files. More... | |
| elgg_invalidate_simplecache () | |
| Deletes all cached views in the simplecache and sets the lastcache and lastupdate time to 0 for every valid viewtype. More... | |
| elgg_flush_caches () | |
| Flush all the registered caches. More... | |
| _elgg_is_cache_symlinked () | |
| Checks if /cache directory has been symlinked to views simplecache directory. More... | |
| _elgg_invalidate_cache_for_entity ($entity_guid) | |
| Invalidate entity cache. More... | |
| _elgg_cache_init () | |
| Initializes the simplecache lastcache variable and creates system cache files when appropriate. More... | |
Variables | |
| return | function (\Elgg\EventsService $events, \Elgg\HooksRegistrationService $hooks) |
| _elgg_cache_init | ( | ) |
| _elgg_invalidate_cache_for_entity | ( | $entity_guid | ) |
| _elgg_is_cache_symlinked | ( | ) |
| _elgg_rmdir | ( | $dir, | |
$empty = false |
|||
| ) |
Recursively deletes a directory, including all hidden files.
TODO(ewinslow): Move to filesystem package
| string | $dir | The directory |
| bool | $empty | If true, we just empty the directory |
| elgg_disable_simplecache | ( | ) |
Disables the simple cache.
| elgg_disable_system_cache | ( | ) |
| elgg_enable_simplecache | ( | ) |
| elgg_enable_system_cache | ( | ) |
| elgg_flush_caches | ( | ) |
| elgg_get_simplecache_url | ( | $view, | |
$subview = '' |
|||
| ) |
Get the URL for the cached view.
Recommended usage is to just pass the entire view name as the first and only arg:
For backwards compatibility with older versions of Elgg, this function supports "js" or "css" as the first arg, with the rest of the view name as the second arg:
This automatically registers the view with Elgg's simplecache.
| string | $view | The full view name |
| string | $subview | If the first arg is "css" or "js", the rest of the view name |
| elgg_get_system_cache | ( | ) |
| elgg_invalidate_simplecache | ( | ) |
| elgg_is_simplecache_enabled | ( | ) |
| elgg_is_system_cache_enabled | ( | ) |
| elgg_load_system_cache | ( | $type | ) |
| elgg_register_simplecache_view | ( | $view_name | ) |
Registers a view to simple cache.
Simple cache is a caching mechanism that saves the output of a view and its extensions into a file. If the view is called by the engine/handlers/cache_handler.php file, the Elgg engine will not be loaded and the contents of the view will returned from file.
| string | $view_name | View name |
| elgg_reset_system_cache | ( | ) |
| elgg_save_system_cache | ( | $type, | |
| $data | |||
| ) |
| return function(\Elgg\EventsService $events, \Elgg\HooksRegistrationService $hooks) | ( | \Elgg\EventsService | $events, |
| \Elgg\HooksRegistrationService | $hooks | ||
| ) |