function boost_clear_expired_cache_submit in Boost 6
Flushes all expired pages from database
1 call to boost_clear_expired_cache_submit()
1 string reference to 'boost_clear_expired_cache_submit'
- boost_admin_boost_performance_page in ./
boost.admin.inc - Form builder; Displays Boost's configuration page.
File
- ./
boost.admin.inc, line 1617 - All the code for the Boost module's administrative interface.
Code
function boost_clear_expired_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(1, $first, $form, $form_state)) {
return FALSE;
}
$ignore = variable_get('boost_ignore_flush', 0);
$GLOBALS['conf']['boost_ignore_flush'] = 0;
if (boost_cache_expire_all()) {
drupal_set_message(t('Boost: Expired stale files from static page cache.'));
}
else {
drupal_set_message(t('Boost: Set "Ignore cache flushing:" to \'Disabled\' OR \'Only Ignore Complete Flushes\' 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;
}