summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-11-25 18:01:56 +0000
committerDries Buytaert <dries@buytaert.net>2002-11-25 18:01:56 +0000
commit8fa7e354a74016a13e44efe713f693ebcfd6a99a (patch)
tree06fff1c64c939bfbd87de4263b7b55d424b6817b /modules/system/system.module
parent61b76fa2c1d54257e14d1700efc266e6999a64d1 (diff)
downloadbrdo-8fa7e354a74016a13e44efe713f693ebcfd6a99a.tar.gz
brdo-8fa7e354a74016a13e44efe713f693ebcfd6a99a.tar.bz2
- Fixed a caching bug.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module12
1 files changed, 5 insertions, 7 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index f6e55551e..d8bf1c0f9 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -109,12 +109,6 @@ function system_save($edit = array()) {
variable_set($name, $value);
}
- /*
- ** Clear the cache so the changes take effect for anonymous users.
- */
-
- cache_clear_all();
-
return t("The configuration options have been saved.");
}
@@ -240,6 +234,7 @@ function system_admin() {
foreach ($edit["status"] as $filename => $status) {
db_query("UPDATE system SET status = %d WHERE filename = '$filename'", $status);
}
+ cache_clear_all();
case "modules":
// Note: changing this also requires changing module_init() @ includes/module.inc.
$required = array("modules/user.module", "modules/system.module", "modules/watchdog.module");
@@ -250,16 +245,19 @@ function system_admin() {
foreach ($edit["status"] as $filename => $status) {
db_query("UPDATE system SET status = %d WHERE filename = '$filename'", $status);
}
+ cache_clear_all();
case "themes":
print system_listing("theme", "themes");
break;
case t("Reset to defaults"):
print status(system_default($edit));
print system_view($type);
+ cache_clear_all();
break;
case t("Save configuration"):
print status(system_save($edit));
print system_view($type);
+ cache_clear_all();
break;
default:
print system_view($type);
@@ -270,4 +268,4 @@ function system_admin() {
}
}
-?> \ No newline at end of file
+?>