public function Twig_Cache_Filesystem::getTimestamp in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/lib/Twig/Cache/Filesystem.php \Twig_Cache_Filesystem::getTimestamp()
Returns the modification timestamp of a key.
Parameters
string $key The cache key:
Return value
int
Overrides Twig_CacheInterface::getTimestamp
File
- vendor/
twig/ twig/ lib/ Twig/ Cache/ Filesystem.php, line 88
Class
- Twig_Cache_Filesystem
- Implements a cache on the filesystem.
Code
public function getTimestamp($key) {
if (!file_exists($key)) {
return 0;
}
return (int) @filemtime($key);
}