You are here

function boost_cache_clear_all in Boost 5

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

Deletes all static files currently in the cache.

File

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

Code

function boost_cache_clear_all() {
  clearstatcache();
  if (($cache_dir = boost_cache_directory()) && file_exists($cache_dir)) {
    return _boost_rmdir_rf($cache_dir);
  }
}