summaryrefslogtreecommitdiff
path: root/plugins/Sitemap/Sitemap_notice_count.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Sitemap/Sitemap_notice_count.php')
-rw-r--r--plugins/Sitemap/Sitemap_notice_count.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Sitemap/Sitemap_notice_count.php b/plugins/Sitemap/Sitemap_notice_count.php
index 2a375b3e4..6e0061e97 100644
--- a/plugins/Sitemap/Sitemap_notice_count.php
+++ b/plugins/Sitemap/Sitemap_notice_count.php
@@ -153,7 +153,9 @@ class Sitemap_notice_count extends Memcached_DataObject
$noticeCounts[$snc->notice_date] = $snc->notice_count;
}
- self::cacheSet('sitemap:notice:counts', $noticeCounts);
+ // Cache notice counts for 4 hours.
+
+ self::cacheSet('sitemap:notice:counts', $noticeCounts, null, time() + 4 * 60 * 60);
}
return $noticeCounts;