summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-09-15 20:34:35 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-09-15 20:34:35 +0000
commitf8b429e963b4e9fe73f0a85a0ccb2679eca65d62 (patch)
tree9497c600f1eb3aca808f9579db34b7b742652064 /modules
parentd00f4a4ebfc91321ed965335b16e13e6eaa519cd (diff)
downloadbrdo-f8b429e963b4e9fe73f0a85a0ccb2679eca65d62.tar.gz
brdo-f8b429e963b4e9fe73f0a85a0ccb2679eca65d62.tar.bz2
#10862: Smarter filter cache wiping.
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 {