summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/archive.module2
-rw-r--r--modules/archive/archive.module2
-rw-r--r--modules/forum.module4
-rw-r--r--modules/forum/forum.module4
4 files changed, 6 insertions, 6 deletions
diff --git a/modules/archive.module b/modules/archive.module
index 3f2255357..8fbfe6dab 100644
--- a/modules/archive.module
+++ b/modules/archive.module
@@ -150,7 +150,7 @@ function archive_calendar($original = 0) {
$output .= "</table></div>\n\n";
- cache_set("archive:calendar:$start_of_month", $output, time() + variable_get("cache_clear", 120));
+ cache_set("archive:calendar:$start_of_month", $output, 1);
return $output;
}
diff --git a/modules/archive/archive.module b/modules/archive/archive.module
index 3f2255357..8fbfe6dab 100644
--- a/modules/archive/archive.module
+++ b/modules/archive/archive.module
@@ -150,7 +150,7 @@ function archive_calendar($original = 0) {
$output .= "</table></div>\n\n";
- cache_set("archive:calendar:$start_of_month", $output, time() + variable_get("cache_clear", 120));
+ cache_set("archive:calendar:$start_of_month", $output, 1);
return $output;
}
diff --git a/modules/forum.module b/modules/forum.module
index 6dd7af988..01574b4ff 100644
--- a/modules/forum.module
+++ b/modules/forum.module
@@ -95,7 +95,7 @@ function forum_block($op = "list", $delta = 0) {
$content .= "<div id=\"forum_more\" style=\"text-align: right;\">". l(t("more"), "forum", array("title" => t("Read the latest forum topics."))) ."</div>";
}
- cache_set("forum:block", $content, time() + variable_get("cache_clear", 120));
+ cache_set("forum:block", $content, 1);
}
else {
$content = $cache->data;
@@ -321,7 +321,7 @@ function forum_get_forums($tid = 0) {
$n++;
}
- cache_set("forum:$tid", serialize($forums), time() + variable_get("cache_clear", 120));
+ cache_set("forum:$tid", serialize($forums), 1);
}
else {
$forums = unserialize($cache->data);
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index 6dd7af988..01574b4ff 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -95,7 +95,7 @@ function forum_block($op = "list", $delta = 0) {
$content .= "<div id=\"forum_more\" style=\"text-align: right;\">". l(t("more"), "forum", array("title" => t("Read the latest forum topics."))) ."</div>";
}
- cache_set("forum:block", $content, time() + variable_get("cache_clear", 120));
+ cache_set("forum:block", $content, 1);
}
else {
$content = $cache->data;
@@ -321,7 +321,7 @@ function forum_get_forums($tid = 0) {
$n++;
}
- cache_set("forum:$tid", serialize($forums), time() + variable_get("cache_clear", 120));
+ cache_set("forum:$tid", serialize($forums), 1);
}
else {
$forums = unserialize($cache->data);