8 'value' =>
elgg_echo(
'admin:performance:generic:description'),
30 if (function_exists(
'apache_get_version')) {
31 if (apache_get_version() !==
false) {
33 $title =
elgg_echo(
'admin:performance:apache:mod_cache');
37 if (in_array(
'mod_cache', apache_get_modules())) {
50 $title =
elgg_echo(
'admin:performance:php:open_basedir');
51 $value =
elgg_echo(
'admin:performance:php:open_basedir:not_configured');
60 if (stripos(PHP_OS,
'WIN') === 0) {
66 if (
count($parsed_open_basedirs) > 5) {
80 $title =
elgg_echo(
'admin:server:label:opcache');
84 if (function_exists(
'opcache_get_status')) {
101 $title =
elgg_echo(
'admin:server:label:memcache');
102 $value =
elgg_echo(
'status:unavailable');
105 if (\
Elgg\Cache\CompositeCache::isMemcacheAvailable()) {
121 $title =
elgg_echo(
'admin:server:label:redis');
122 $value =
elgg_echo(
'status:unavailable');
125 if (\
Elgg\Cache\CompositeCache::isRedisAvailable()) {
142 'text' =>
elgg_echo(
'admin:performance:simplecache'),
144 'segments' =>
'site_settings',
145 ]) .
'#elgg-settings-advanced-caching',
146 'is_trusted' =>
true,
155 if (!
elgg()->config->hasInitialValue(
'simplecache_enabled')) {
166 'text' =>
elgg_echo(
'admin:performance:systemcache'),
168 'segments' =>
'site_settings',
169 ]) .
'#elgg-settings-advanced-caching',
170 'is_trusted' =>
true,
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_view_image_block(string $image, string $body, array $vars=[])
Wrapper function for the image block display pattern.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
if(function_exists('apache_get_version')) $icon
$icon_ok
Generic performance overview, more detailed information can be added to additional tabs in /admin/per...
elgg_view_icon(string $name, array $vars=[])
View an icon glyph.
elgg_generate_url(string $name, array $parameters=[])
Generate a URL for named route.
_elgg_services()
Get the global service provider.
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.