diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/archive.module | 4 | ||||
-rw-r--r-- | 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 .= "</table></div>\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 .= "</table></div>\n\n"; - cache_set("archive:calendar:$start_of_month", $output, 1); + cache_set("archive:calendar:$day-$month-$year", $output, 1); return $output; } |