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
setLogger(LoggerInterface $logger) Sets the debug logger to use for this loader. | from Loader | |
__construct(LoaderInterface $loader, string $dir) Constructor. | ||
Storage|bool | load(TemplateReferenceInterface $template) Loads a template. | |
bool | isFresh(TemplateReferenceInterface $template, int $time) Returns true if the template is still fresh. |
Details
setLogger(LoggerInterface $logger)
Sets the debug logger to use for this loader.
__construct(LoaderInterface $loader, string $dir)
Constructor.
Storage|bool load(TemplateReferenceInterface $template)
Loads a template.
bool isFresh(TemplateReferenceInterface $template, int $time)
Returns true if the template is still fresh.
Please login to continue.