PHP Класс Elgg\Cache\SystemCache

С версии: 1.10.0
Наследование: use trait Elgg\Profilable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( ElggFileCache $cache, Config $config ) Constructor
disable ( ) : void Disables the system disk cache.
enable ( ) : void Enables the system disk cache.
init ( ) Initializes the simplecache lastcache variable and creates system cache files when appropriate.
isEnabled ( ) : boolean Is system cache enabled
load ( string $type ) : string Retrieve the contents of a system cache.
loadAll ( ) Loads the system cache during engine boot
reset ( ) : void Reset the system cache by deleting the caches
save ( string $type, string $data ) : boolean Saves a system cache.

Описание методов

__construct() публичный Метод

Constructor
public __construct ( ElggFileCache $cache, Config $config )
$cache ElggFileCache Elgg disk cache
$config Elgg\Config Elgg config

disable() публичный Метод

Uses the 'system_cache_enabled' config with a boolean value. Resets the system cache.
public disable ( ) : void
Результат void

enable() публичный Метод

Uses the 'system_cache_enabled' config with a boolean value. Resets the system cache.
public enable ( ) : void
Результат void

init() публичный Метод

Initializes the simplecache lastcache variable and creates system cache files when appropriate.
public init ( )

isEnabled() публичный Метод

Is system cache enabled
public isEnabled ( ) : boolean
Результат boolean

load() публичный Метод

Retrieve the contents of a system cache.
public load ( string $type ) : string
$type string The type of cache to load
Результат string

loadAll() публичный Метод

Loads the system cache during engine boot
См. также: elgg_reset_system_cache()
public loadAll ( )

reset() публичный Метод

Reset the system cache by deleting the caches
public reset ( ) : void
Результат void

save() публичный Метод

Saves a system cache.
public save ( string $type, string $data ) : boolean
$type string The type or identifier of the cache
$data string The data to be saved
Результат boolean