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/filter.module4
-rw-r--r--modules/filter/filter.module4
4 files changed, 6 insertions, 6 deletions
diff --git a/modules/archive.module b/modules/archive.module
index 2e6a78654..21047dae7 100644
--- a/modules/archive.module
+++ b/modules/archive.module
@@ -169,7 +169,7 @@ function archive_calendar($original = 0) {
$output .= "</table></div>\n\n";
- cache_set("archive:calendar:$day-$month-$year", $output, 1);
+ cache_set("archive:calendar:$day-$month-$year", $output, CACHE_TEMPORARY);
return $output;
}
diff --git a/modules/archive/archive.module b/modules/archive/archive.module
index 2e6a78654..21047dae7 100644
--- a/modules/archive/archive.module
+++ b/modules/archive/archive.module
@@ -169,7 +169,7 @@ function archive_calendar($original = 0) {
$output .= "</table></div>\n\n";
- cache_set("archive:calendar:$day-$month-$year", $output, 1);
+ cache_set("archive:calendar:$day-$month-$year", $output, CACHE_TEMPORARY);
return $output;
}
diff --git a/modules/filter.module b/modules/filter.module
index 1cf09d48c..dece83b8e 100644
--- a/modules/filter.module
+++ b/modules/filter.module
@@ -593,9 +593,9 @@ function check_output($text, $format = FILTER_FORMAT_DEFAULT) {
$text = module_invoke($filter->module, 'filter', 'process', $filter->delta, $format, $text);
}
- // Store in cache.
+ // Store in cache with a minimum expiration time of 1 day.
if ($cache) {
- cache_set($id, $text, 1);
+ cache_set($id, $text, time() + (60 * 60 * 24));
}
}
else {
diff --git a/modules/filter/filter.module b/modules/filter/filter.module
index 1cf09d48c..dece83b8e 100644
--- a/modules/filter/filter.module
+++ b/modules/filter/filter.module
@@ -593,9 +593,9 @@ function check_output($text, $format = FILTER_FORMAT_DEFAULT) {
$text = module_invoke($filter->module, 'filter', 'process', $filter->delta, $format, $text);
}
- // Store in cache.
+ // Store in cache with a minimum expiration time of 1 day.
if ($cache) {
- cache_set($id, $text, 1);
+ cache_set($id, $text, time() + (60 * 60 * 24));
}
}
else {