From 431c211ec209cdeb1fd0f54b75697cd1ed796cdd Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 11 Aug 2016 14:06:07 -0400 Subject: [PATCH] Bump search post id cache to 1 week --- lib/search.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/search.rb b/lib/search.rb index 38fb03a424d..5d32f14692f 100644 --- a/lib/search.rb +++ b/lib/search.rb @@ -141,7 +141,7 @@ class Search return 0 unless SiteSetting.search_prefer_recent_posts? # It can be quite slow to count all the posts so let's cache it - Rails.cache.fetch("search-min-post-id:#{SiteSetting.search_recent_posts_size}", expires_in: 1.day) do + Rails.cache.fetch("search-min-post-id:#{SiteSetting.search_recent_posts_size}", expires_in: 1.week) do min_post_id_no_cache end end