You are here

function boost_file_is_expired in Boost 5

Same name and namespace in other branches
  1. 6 boost.module \boost_file_is_expired()

Determines whether a cached file has expired, i.e. whether its age exceeds the maximum cache lifetime as defined by Drupal's system settings.

1 call to boost_file_is_expired()
boost_cache_set in ./boost.api.inc
Replaces the cached contents of the specified page, if stale.
1 string reference to 'boost_file_is_expired'
boost_cache_expire_all in ./boost.api.inc
Deletes all expired static files currently in the cache.

File

./boost.api.inc, line 204
Implements the Boost API for static page caching.

Code

function boost_file_is_expired($filename) {
  if (is_link($filename)) {
    return FALSE;
  }
  return boost_file_get_age($filename) > variable_get('cache_lifetime', 600);
}