You are here

function boost_cache_expire_all in Boost 5

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

Deletes all expired static files currently in the cache.

2 calls to boost_cache_expire_all()
boost_cron in ./boost.module
Implementation of hook_cron(). Performs periodic actions.
boost_init in ./boost.module
Implementation of hook_init(). Performs page setup tasks.

File

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

Code

function boost_cache_expire_all() {
  clearstatcache();
  if (($cache_dir = boost_cache_directory()) && file_exists($cache_dir)) {
    _boost_rmdir_rf($cache_dir, 'boost_file_is_expired');
  }
  return TRUE;
}