diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-11-17 06:42:52 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-11-17 06:42:52 +0000 |
commit | 9e32c2e9606079e72c58075d9167634dcfc65a01 (patch) | |
tree | ba24bf55130fcc3ec59562b35b764bc9e73d4e8e /modules/comment/comment.module | |
parent | 64f8781f789912751849c506a9a412ed27ddd0db (diff) | |
download | brdo-9e32c2e9606079e72c58075d9167634dcfc65a01.tar.gz brdo-9e32c2e9606079e72c58075d9167634dcfc65a01.tar.bz2 |
Patch based on work of Kjartan:
- Changed cache API.
- Fixed caching bug in comment.module. Odd this hasn't been reported yet.
- Fixed caching bug in forum.module.
- Fixed caching bug in system.module.
- Fixed caching bug in block.module.
- Simplified caching support in forum.module thanks to improved cache API.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 12 |
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 { |