From b5607181a8b9d33c2efd03e0c0ce1f40efd2d611 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 6 Jan 2004 18:30:10 +0000 Subject: - Fixed bug #4989: archive calendar cached too aggressively. --- modules/archive.module | 4 ++-- modules/archive/archive.module | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/archive.module b/modules/archive.module index 83a422c40..5bdc1b34d 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 .= "\n\n"; - cache_set("archive:calendar:$start_of_month", $output, 1); + cache_set("archive:calendar:$day-$month-$year", $output, 1); return $output; } diff --git a/modules/archive/archive.module b/modules/archive/archive.module index 83a422c40..5bdc1b34d 100644 --- a/modules/archive/archive.module +++ b/modules/archive/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 .= "\n\n"; - cache_set("archive:calendar:$start_of_month", $output, 1); + cache_set("archive:calendar:$day-$month-$year", $output, 1); return $output; } -- cgit v1.2.3