You are here

function boost_db_get_cache_age in Boost 6

1 call to boost_db_get_cache_age()
boost_block in ./boost.module
Implementation of hook_block().

File

./boost.module, line 4599
Provides static file caching for Drupal text output. Pages, Feeds, ect...

Code

function boost_db_get_cache_age($filename) {
  $boost_db = boost_get_db($filename);
  $lifetime = BOOST_CACHE_LIFETIME;
  if ($boost_db['lifetime'] != -1) {
    $lifetime = $boost_db['lifetime'];
  }
  $time = BOOST_TIME - ($boost_db['expire'] - $lifetime);
  return $time;
}