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()
.
Properties
protected LoggerInterface|null | $logger | from Loader | |
protected | $loader | ||
protected | $dir |
Methods
Storage|bool
bool
isFresh(TemplateReferenceInterface $template, int $time)
Returns true if the template is still fresh.
Details
bool
isFresh(TemplateReferenceInterface $template, int $time)
Returns true if the template is still fresh.