summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module12
1 files changed, 3 insertions, 9 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 4c0dd1b64..8c1c7b57f 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -276,17 +276,11 @@ function comment_post($edit) {
}
/*
- ** Clear the cache:
+ ** Clear the cache so an anonymous user can see his comment being
+ ** added.
*/
- cache_clear();
-
- /*
- ** TODO: we'd prefer to invalidate the page or pages with the newly
- ** inserted comment.
- **
- ** db_query("DELETE FROM cache WHERE cid LIKE '%s'", "%id=".$edit["nid"]."%");
- */
+ cache_clear_all();
}
}
else {