mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08: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?
|
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…
Add table
Add a link
Reference in a new issue