You are here

function boost_file_get_age in Boost 7

Same name and namespace in other branches
  1. 5 boost.api.inc \boost_file_get_age()
  2. 6 boost.module \boost_file_get_age()

Returns the age of a cached file, measured in seconds since it was last updated.

Parameters

$filename: Name of cached file

Return value

int

1 call to boost_file_get_age()
_boost_rmdir in ./boost.module
Recursive version of rmdir(); use with extreme caution.

File

./boost.module, line 1346
Caches generated output as a static file to be served directly from the webserver.

Code

function boost_file_get_age($filename) {
  return REQUEST_TIME - filemtime($filename);
}