function boost_file_get_age in Boost 5
Same name and namespace in other branches
- 6 boost.module \boost_file_get_age()
- 7 boost.module \boost_file_get_age()
Returns the age of a cached file, measured in seconds since it was last updated.
1 call to boost_file_get_age()
- boost_file_is_expired in ./
boost.api.inc - Determines whether a cached file has expired, i.e. whether its age exceeds the maximum cache lifetime as defined by Drupal's system settings.
File
- ./
boost.api.inc, line 196 - Implements the Boost API for static page caching.
Code
function boost_file_get_age($filename) {
return time() - filemtime($filename);
}