diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-01-06 18:30:10 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-01-06 18:30:10 +0000 |
commit | b5607181a8b9d33c2efd03e0c0ce1f40efd2d611 (patch) | |
tree | 82eacab2ea3d48fe2a90da47ea4e473a75ad6505 /modules/archive | |
parent | 9478f33c26a83a9d02959b4e1c5fe3d72dafd490 (diff) | |
download | brdo-b5607181a8b9d33c2efd03e0c0ce1f40efd2d611.tar.gz brdo-b5607181a8b9d33c2efd03e0c0ce1f40efd2d611.tar.bz2 |
- Fixed bug #4989: archive calendar cached too aggressively.
Diffstat (limited to 'modules/archive')
-rw-r--r-- | modules/archive/archive.module | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |