mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-29 08:09:55 -04:00
Bump search post id cache to 1 week
This commit is contained in:
parent
9b840cac96
commit
431c211ec2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue