Commit 46f4bdb9 authored by mvc's avatar mvc Committed by bgm

Issue #1181632 : do not truncate boost_cache_settings table on cache flush (it...

Issue #1181632 : do not truncate boost_cache_settings table on cache flush (it contains real settings that are set by the user)
parent 08984837
......@@ -1646,11 +1646,10 @@ function boost_reset_database_file_submit($form, &$form_state, $first = TRUE) {
$GLOBALS['conf']['boost_ignore_flush'] = 0;
if (boost_cache_clear_all()) {
db_query("TRUNCATE {boost_cache}");
db_query("TRUNCATE {boost_cache_settings}");
db_query("TRUNCATE {boost_cache_relationships}");
db_query("TRUNCATE {boost_crawler}");
_boost_rmdir_rf(BOOST_ROOT_CACHE_DIR, TRUE, TRUE, TRUE);
drupal_set_message(t('Boost: Static page cache & 4 database tables cleared.'));
drupal_set_message(t('Boost: Static page cache & 3 database tables 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');
......
......@@ -79,11 +79,10 @@ function boost_drush_cache_reset() {
$GLOBALS['conf']['boost_ignore_flush'] = 0;
if (boost_cache_clear_all()) {
db_query("TRUNCATE {boost_cache}");
db_query("TRUNCATE {boost_cache_settings}");
db_query("TRUNCATE {boost_cache_relationships}");
db_query("TRUNCATE {boost_crawler}");
_boost_rmdir_rf(BOOST_ROOT_CACHE_DIR, TRUE, TRUE, TRUE);
print drush_log(dt('Boost: Static page cache & 4 database tables cleared.'), 'ok');
print drush_log(dt('Boost: Static page cache & 3 database tables cleared.'), 'ok');
}
else {
print drush_log(dt('Boost: Static page cache & database tables NOT cleared'), 'error');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment