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