class ConfigCache
ConfigCache manages PHP cache files.
When debug is enabled, it knows when to flush the cache thanks to an array of ResourceInterface instances.
__construct(string $file, bool $debug) Constructor. | ||
string | __toString() Gets the cache file path. | |
bool | isFresh() Checks if the cache is still fresh. | |
write(string $content, array $metadata = null) Writes cache. |
Constructor.
Gets the cache file path.
Checks if the cache is still fresh.
This method always returns true when debug is off and the cache file exists.
Writes cache.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Config/ConfigCache.html