You are here

function boost_file_get_age in Boost 6

Same name and namespace in other branches
  1. 5 boost.api.inc \boost_file_get_age()
  2. 7 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

2 calls to boost_file_get_age()
boost_file_get_ttl in ./boost.module
Returns the remaining time-to-live for a cached file, measured in seconds.
boost_file_is_expired in ./boost.module
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.module, line 4579
Provides static file caching for Drupal text output. Pages, Feeds, ect...

Code

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