summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2004-01-06 18:32:27 (GMT)
committer Dries Buytaert2004-01-06 18:32:27 (GMT)
commite29d563a31084711f039198841afa889bc251a82 (patch)
treeaaf2f3e8a17543b00c3b7eaa950754a5b0dbf282
parent20d54e77d6fb04a8ee0fd5d969e938b8711ad530 (diff)
- Fixed bug #4989: archive calendar cached too aggressively.
-rw-r--r--modules/archive.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/archive.module b/modules/archive.module
index a8a5e0c..3458b37 100644
--- a/modules/archive.module
+++ b/modules/archive.module
@@ -58,7 +58,7 @@ function archive_calendar($original = 0) {
$end_of_month = mktime(23, 59, 59, $month, $last, $year);
- $cache = cache_get("archive:calendar:$start_of_month");
+ $cache = cache_get("archive:calendar:$day-$month-$year");
if (!empty($cache)) {
return $cache->data;
@@ -159,7 +159,7 @@ function archive_calendar($original = 0) {
$output .= "</table></div>\n\n";
- cache_set("archive:calendar:$start_of_month", $output, 1);
+ cache_set("archive:calendar:$day-$month-$year", $output, 1);
return $output;
}