public function Twig_Cache_Filesystem::getTimestamp in Translation template extractor 7.3
Returns the modification timestamp of a key.
Parameters
string $key The cache key:
Return value
int
Overrides Twig_CacheInterface::getTimestamp
File
- vendor/
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);
}