PHP Class Bolt\Cache

. Useful for storing non-vital information like feeds, and other stuff that can be recovered easily.
Author: Bob den Otter, [email protected]
Inheritance: extends Doctrine\Common\Cache\FilesystemCache
Show file Open project: bolt/bolt Class Usage Examples

Public Methods

Method Description
__construct ( string $directory, string $extension = self::EXTENSION, integer $umask = 2, Bolt\Filesystem\AggregateFilesystemInterface $filesystem = null ) Cache constructor.

Protected Methods

Method Description
doFlush ( ) : boolean Clear the cache. Both the doctrine FilesystemCache, as well as twig and thumbnail temp files.

Private Methods

Method Description
flushDirectory ( Bolt\Filesystem\Handler\DirectoryInterface $directory ) Helper function for doFlush().

Method Details

__construct() public method

Cache constructor.
public __construct ( string $directory, string $extension = self::EXTENSION, integer $umask = 2, Bolt\Filesystem\AggregateFilesystemInterface $filesystem = null )
$directory string
$extension string
$umask integer
$filesystem Bolt\Filesystem\AggregateFilesystemInterface

doFlush() protected method

Clear the cache. Both the doctrine FilesystemCache, as well as twig and thumbnail temp files.
protected doFlush ( ) : boolean
return boolean