Elgg  Version master
Variables
caching.php File Reference

Go to the source code of this file.

Variables

 $is_simple_cache_on = (bool) elgg_get_config('simplecache_enabled')
 Advanced site settings, caching section. More...
 
 $params
 
if(elgg() ->config->hasInitialValue('simplecache_enabled')) $params ['checked'] = $is_simple_cache_on
 
 $simple_cache_disabled_class = $is_simple_cache_on ? '' : 'elgg-state-disabled'
 
 $body = elgg_view_field($params)
 
 $cache_symlinked = _elgg_services()->simpleCache->isSymbolicLinked()
 
 $help = elgg_echo('installation:cache_symlink:description')
 

Variable Documentation

◆ $body

$body = elgg_view_field($params)

Definition at line 29 of file caching.php.

◆ $cache_symlinked

$cache_symlinked = _elgg_services()->simpleCache->isSymbolicLinked()

Definition at line 31 of file caching.php.

◆ $help

$help = elgg_echo('installation:cache_symlink:description')

Definition at line 33 of file caching.php.

◆ $is_simple_cache_on

$is_simple_cache_on = (bool) elgg_get_config('simplecache_enabled')

Advanced site settings, caching section.

Definition at line 7 of file caching.php.

◆ $params [1/2]

$params
Initial value:
= [
'#type' => 'checkbox',
'#label' => elgg_echo('installation:simplecache:label'),
'#help' => elgg_echo('installation:simplecache:description'),
'name' => 'simplecache_enabled',
'switch' => true,
]
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17

Definition at line 9 of file caching.php.

◆ $params [2/2]

if (elgg() ->config->hasInitialValue( 'simplecache_enabled')) $params[ 'checked'] = $is_simple_cache_on

Definition at line 26 of file caching.php.

◆ $simple_cache_disabled_class

$simple_cache_disabled_class = $is_simple_cache_on ? '' : 'elgg-state-disabled'

Definition at line 27 of file caching.php.