Elgg
Version 1.11
|
Go to the source code of this file.
Namespaces | |
Elgg\Core | |
Activate a plugin or plugins. | |
Functions | |
elgg_get_system_cache () | |
Returns an 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_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 ($type, $view) | |
_elgg_get_simplecache_root () | |
Get the base url for simple cache requests. More... | |
_elgg_get_view_filetype ($view) | |
Returns the type of output expected from the 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) | |
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_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 | ( | ) |
Initializes the simplecache lastcache variable and creates system cache files when appropriate.
private
_elgg_get_simplecache_root | ( | ) |
Get the base url for simple cache requests.
_elgg_get_view_filetype | ( | $view | ) |
Returns the type of output expected from the view.
css/* views always return "css" js/* views always return "js"
Otherwise, returns "unknown"
string | $view | The view name |
_elgg_rmdir | ( | $dir | ) |
Recursively deletes a directory, including all hidden files.
TODO(ewinslow): Move to filesystem package
string | $dir |
elgg_disable_simplecache | ( | ) |
Disables the simple cache.
elgg_disable_system_cache | ( | ) |
Disables the system disk cache.
Uses the 'system_cache_enabled' datalist with a boolean value. Resets the system cache.
elgg_enable_simplecache | ( | ) |
Enables the simple cache.
elgg_enable_system_cache | ( | ) |
Enables the system disk cache.
Uses the 'system_cache_enabled' datalist with a boolean value. Resets the system cache.
elgg_get_simplecache_url | ( | $type, | |
$view | |||
) |
elgg_get_system_cache | ( | ) |
Returns an object suitable for caching system information.
elgg_invalidate_simplecache | ( | ) |
Deletes all cached views in the simplecache and sets the lastcache and lastupdate time to 0 for every valid viewtype.
elgg_is_simplecache_enabled | ( | ) |
Is simple cache enabled.
elgg_load_system_cache | ( | $type | ) |
Retrieve the contents of a system cache.
string | $type | The type of cache to load |
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 | ( | ) |
Reset the system cache by deleting the caches.
elgg_save_system_cache | ( | $type, | |
$data | |||
) |
Saves a system cache.
string | $type | The type or identifier of the cache |
string | $data | The data to be saved |
return function(\Elgg\EventsService $events,\Elgg\HooksRegistrationService $hooks) |