summaryrefslogtreecommitdiff
path: root/modules/block.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-11-17 06:42:52 +0000
committerDries Buytaert <dries@buytaert.net>2002-11-17 06:42:52 +0000
commit9e32c2e9606079e72c58075d9167634dcfc65a01 (patch)
treeba24bf55130fcc3ec59562b35b764bc9e73d4e8e /modules/block.module
parent64f8781f789912751849c506a9a412ed27ddd0db (diff)
downloadbrdo-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/block.module')
-rw-r--r--modules/block.module6
1 files changed, 6 insertions, 0 deletions
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();
}
/**