CacheLoader
class CacheLoader extends Loader
CacheLoader is a loader that caches other loaders responses on the filesystem.
This cache only caches on disk to allow PHP accelerators to cache the opcodes.
All other mechanism would imply the use of eval()
.
Methods
Storage|bool
bool
isFresh(TemplateReferenceInterface $template, int $time)
Returns true if the template is still fresh.
Details
in Loader at line line 33
setLogger(LoggerInterface $logger)
Sets the debug logger to use for this loader.
at line line 38
__construct(LoaderInterface $loader, string $dir)
Constructor.
at line line 51
Storage|bool
load(TemplateReferenceInterface $template)
Loads a template.
at line line 93
bool
isFresh(TemplateReferenceInterface $template, int $time)
Returns true if the template is still fresh.