summaryrefslogtreecommitdiff
path: root/modules/comment/comment.admin.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-31 11:49:51 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-31 11:49:51 +0000
commit46f51dec0cc2d21b87962a0eab964b90fe7128d7 (patch)
tree2828caf195071185100c49f1d04b634e0ba27045 /modules/comment/comment.admin.inc
parent72bffa027800b07a45046314e85a74341d0f1714 (diff)
downloadbrdo-46f51dec0cc2d21b87962a0eab964b90fe7128d7.tar.gz
brdo-46f51dec0cc2d21b87962a0eab964b90fe7128d7.tar.bz2
- Patch #757288 by catch: optimize comment_save().
Diffstat (limited to 'modules/comment/comment.admin.inc')
-rw-r--r--modules/comment/comment.admin.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.admin.inc b/modules/comment/comment.admin.inc
index b3a6499f8..ddbdc8bed 100644
--- a/modules/comment/comment.admin.inc
+++ b/modules/comment/comment.admin.inc
@@ -162,7 +162,6 @@ function comment_admin_overview_submit($form, &$form_state) {
if ($operation == 'delete') {
comment_delete_multiple($cids);
- cache_clear_all();
}
else {
foreach ($cids as $cid => $value) {
@@ -179,6 +178,7 @@ function comment_admin_overview_submit($form, &$form_state) {
}
drupal_set_message(t('The update has been performed.'));
$form_state['redirect'] = 'admin/content/comment';
+ cache_clear_all();
}
/**