You are here

function boost_cache_clear_all_db in Boost 6

Resets all entries in database.

1 call to boost_cache_clear_all_db()
boost_cache_clear_all in ./boost.module
Deletes all files currently in the cache.

File

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

Code

function boost_cache_clear_all_db() {
  if (BOOST_FLUSH_ALL_MULTISITE) {
    db_query("UPDATE {boost_cache} SET expire = %d", 0);
  }
  else {
    db_query("UPDATE {boost_cache} SET expire = %d WHERE base_dir = '%s'", 0, BOOST_FILE_PATH);
  }
}