Commit b5607181 authored by Dries's avatar Dries

- Fixed bug #4989: archive calendar cached too aggressively.
parent 9478f33c
......@@ -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;
}
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment