11 'label' =>
elgg_echo(
'installation:simplecache:label'),
12 'name' =>
'simplecache_enabled',
18 if (
_elgg_config()->hasInitialValue(
'simplecache_enabled')) {
19 $params[
'class'] =
'elgg-state-disabled';
20 $params[
'label_class'] =
'elgg-state-disabled';
29 'label' =>
elgg_echo(
'installation:cache_symlink:label'),
30 'name' =>
'cache_symlink_enabled',
38 $params[
'class'] =
'elgg-state-disabled';
39 $params[
'label_class'] =
'elgg-state-disabled';
53 'label' =>
elgg_echo(
'installation:minify_js:label'),
54 'name' =>
'simplecache_minify_js',
61 'label' =>
elgg_echo(
'installation:minify_css:label'),
62 'name' =>
'simplecache_minify_css',
69 '#type' =>
'checkbox',
70 'label' =>
elgg_echo(
'installation:systemcache:label'),
71 'help' =>
elgg_echo(
'installation:systemcache:description'),
72 'name' =>
'system_cache_enabled',
_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_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
if($cache_symlinked) $symlink_input
$is_simple_cache_on
Advanced site settings, caching section.
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
$simple_cache_disabled_class
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
elgg_view_module($type, $title, $body, array $vars=[])
Wrapper function for the module display pattern.
elgg_get_root_path()
Get the project path (where composer is installed), ending with slash.
elgg echo
Translates a string.
_elgg_config()
Get the Elgg config service.
elgg_is_system_cache_enabled()
Is system cache enabled.
if(_elgg_config() ->hasInitialValue('simplecache_enabled')) $simple_cache_input
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
elgg_get_config($name, $default=null)
Get an Elgg configuration value.