Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Cache
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
) {
21
$flags =
CompositeCache::CACHE_PERSISTENT
|
CompositeCache::CACHE_FILESYSTEM
|
CompositeCache::CACHE_RUNTIME
;
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
}
Elgg\Cache\CompositeCache\CACHE_PERSISTENT
const CACHE_PERSISTENT
Definition:
CompositeCache.php:25
Elgg\Cache\CompositeCache\CACHE_RUNTIME
const CACHE_RUNTIME
Definition:
CompositeCache.php:23
Elgg\Cache\CacheService\$cache
CompositeCache $cache
Definition:
CacheService.php:13
Elgg\Config
Definition:
Config.php:140
Config
Elgg\Cache\SystemCache\__construct
__construct(protected Config $config)
Constructor.
Definition:
SystemCache.php:20
$config
$config
Advanced site settings, debugging section.
Definition:
debugging.php:6
Elgg\Cache\CompositeCache
Composite cache pool.
Definition:
CompositeCache.php:20
Elgg\Cache\CompositeCache\CACHE_FILESYSTEM
const CACHE_FILESYSTEM
Definition:
CompositeCache.php:24
Elgg\Cache\SystemCache\getCache
getCache()
Returns the cache.
Definition:
SystemCache.php:34
Elgg\Cache\SystemCache
System Cache.
Definition:
SystemCache.php:13
Elgg\Cache
Definition:
AccessCache.php:3
Elgg\Cache\CacheService
Cache Service.
Definition:
CacheService.php:11
Generated on Fri Dec 13 2024 00:03:05 for Elgg by
1.8.11