You are here

function boost_admin_clear_cache_submit in Boost 6

Submit callback; clear system caches.

1 string reference to 'boost_admin_clear_cache_submit'
boost_form_alter in ./boost.module
Implementation of hook_form_alter(). Performs alterations before a form is rendered.

File

./boost.admin.inc, line 52
All the code for the Boost module's administrative interface.

Code

function boost_admin_clear_cache_submit($form, &$form_state) {
  drupal_flush_all_caches();
  if (boost_cache_clear_all()) {
    drupal_set_message(t('Static page cache (boost) and all other caches cleared.'));
  }
  else {
    drupal_set_message(t('Boost: Static page cache NOT cleared. To clear Boosts cache set "Ignore cache flushing:" to \'Disabled\' in the <a href="@link">boost advanced settings</a> & try again.', array(
      '@link' => url('admin/settings/performance/boost', array(
        'fragment' => 'edit-boost-ignore-flush-0-wrapper',
      )),
    )), 'warning');
    drupal_set_message(t('All other caches cleared.'));
  }
}