From 9e32c2e9606079e72c58075d9167634dcfc65a01 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 17 Nov 2002 06:42:52 +0000 Subject: 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. --- modules/block.module | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/block.module') diff --git a/modules/block.module b/modules/block.module index f7ec7c24b..847b55aa8 100644 --- a/modules/block.module +++ b/modules/block.module @@ -77,6 +77,12 @@ function block_admin_save($edit) { db_query("UPDATE blocks SET region = '%s', status = '%d', custom = '%d', path = '%s', weight = '%d' WHERE module = '%s' AND delta = '%d'", $block["region"], $block["status"], $block["custom"], $block["path"], $block["weight"], $module, $delta); } } + + /* + ** Clear the cache so the changes take effect for anonymous users. + */ + + cache_clear_all(); } /** -- cgit v1.2.3