function boost_clear_cache_submit in Boost 6
Flushes boost page cache
1 call to boost_clear_cache_submit()
1 string reference to 'boost_clear_cache_submit'
- boost_admin_boost_performance_page in ./
boost.admin.inc - Form builder; Displays Boost's configuration page.
File
- ./
boost.admin.inc, line 1587 - All the code for the Boost module's administrative interface.
Code
function boost_clear_cache_submit($form, &$form_state, $first = TRUE) {
// Temp fix for bug in form api & buttons
// Check to make sure this button was actually called
if (!boost_admin_button_router(0, $first, $form, $form_state)) {
return FALSE;
}
$ignore = variable_get('boost_ignore_flush', 0);
$GLOBALS['conf']['boost_ignore_flush'] = 0;
if (boost_cache_clear_all()) {
boost_clear_cache_parallel(BOOST_PERM_FILE_PATH);
boost_clear_cache_parallel(BOOST_PERM_GZIP_FILE_PATH);
drupal_set_message(t('Boost: Static page cache cleared.'));
}
else {
drupal_set_message(t('Boost: 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');
}
$GLOBALS['conf']['boost_ignore_flush'] = $ignore;
}