ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Implements a cache on the filesystem. More...
Public Member Functions | |
__construct ($directory, $options=0) | |
generateKey ($name, $className) | |
Generates a cache key for the given template class name. More... | |
load ($key) | |
Loads a template from the cache. More... | |
write ($key, $content) | |
Writes the compiled template to cache. More... | |
getTimestamp ($key) | |
Returns the modification timestamp of a key. More... | |
Data Fields | |
const | FORCE_BYTECODE_INVALIDATION = 1 |
Private Attributes | |
$directory | |
$options | |
Implements a cache on the filesystem.
Definition at line 17 of file Filesystem.php.
Twig_Cache_Filesystem::__construct | ( | $directory, | |
$options = 0 |
|||
) |
$directory | string The root cache directory |
$options | int A set of options |
Definition at line 28 of file Filesystem.php.
References $directory, and $options.
Twig_Cache_Filesystem::generateKey | ( | $name, | |
$className | |||
) |
Generates a cache key for the given template class name.
string | $name | The template name |
string | $className | The template class name |
Implements Twig_CacheInterface.
Definition at line 34 of file Filesystem.php.
References GuzzleHttp\Psr7\hash().
Twig_Cache_Filesystem::getTimestamp | ( | $key | ) |
Returns the modification timestamp of a key.
string | $key | The cache key |
Implements Twig_CacheInterface.
Definition at line 83 of file Filesystem.php.
References $key.
Twig_Cache_Filesystem::load | ( | $key | ) |
Loads a template from the cache.
string | $key | The cache key |
Implements Twig_CacheInterface.
Definition at line 41 of file Filesystem.php.
References $key.
Twig_Cache_Filesystem::write | ( | $key, | |
$content | |||
) |
Writes the compiled template to cache.
string | $key | The cache key |
string | $content | The template representation as a PHP class |
Implements Twig_CacheInterface.
Definition at line 48 of file Filesystem.php.
References $key.
|
private |
Definition at line 21 of file Filesystem.php.
Referenced by __construct().
|
private |
Definition at line 22 of file Filesystem.php.
Referenced by __construct().
const Twig_Cache_Filesystem::FORCE_BYTECODE_INVALIDATION = 1 |
Definition at line 19 of file Filesystem.php.