mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 12:19:24 +08:00
Bump search post id cache to 1 week
This commit is contained in:
parent
9b840cac96
commit
431c211ec2
@ -141,7 +141,7 @@ class Search
|
|||||||
return 0 unless SiteSetting.search_prefer_recent_posts?
|
return 0 unless SiteSetting.search_prefer_recent_posts?
|
||||||
|
|
||||||
# It can be quite slow to count all the posts so let's cache it
|
# 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
|
min_post_id_no_cache
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user