You are here

function boost_cache_clear_all in Boost 6

Same name and namespace in other branches
  1. 5 boost.api.inc \boost_cache_clear_all()

Deletes all files currently in the cache.

13 calls to boost_cache_clear_all()
boost_admin_boost_performance_page_validate in ./boost.admin.inc
validate boost_admin_boost_performance_page form submissions.
boost_admin_clear_cache_submit in ./boost.admin.inc
Submit callback; clear system caches.
boost_admin_modules_submit in ./boost.admin.inc
boost_admin_performance_page_submit in ./boost.admin.inc
Process system_themes_form form submissions.
boost_admin_site_offline_submit in ./boost.admin.inc

... See full list

1 string reference to 'boost_cache_clear_all'
boost.module in ./boost.module
Provides static file caching for Drupal text output. Pages, Feeds, ect...

File

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

Code

function boost_cache_clear_all() {
  global $_boost;
  if (variable_get('boost_ignore_flush', 0) == 0) {
    boost_cache_clear_all_db();
    boost_cache_delete(TRUE);
    if (BOOST_VERBOSE >= 5 && isset($_boost['verbose_option_selected']['boost_cache_clear_all'])) {
      watchdog('boost', 'Flushed ALL files from static page cache.', array(), WATCHDOG_NOTICE);
    }
    return TRUE;
  }
  return FALSE;
}