Elgg  Version master
ServerCache.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Cache;
4 
5 use Elgg\Config;
6 
13 class ServerCache extends CacheService {
14 
20  public function __construct(protected Config $config) {
22 
23  $this->cache = new CompositeCache('server_cache', $this->config, $flags);
24 
25  $this->enabled = (bool) $this->config->system_cache_enabled;
26  }
27 }
$config
Advanced site settings, debugging section.
Definition: debugging.php:6
Composite cache pool.
__construct(protected Config $config)
Constructor.
Definition: ServerCache.php:20