Post#fast_count: raise min cache lifetime to 3 minutes (#3925).

This commit is contained in:
evazion
2018-10-01 10:38:15 -05:00
parent 4425150298
commit 2ae7ec42df
2 changed files with 2 additions and 2 deletions

View File

@@ -2557,7 +2557,7 @@ class PostTest < ActiveSupport::TestCase
end
should "set the expiration time" do
Cache.expects(:put).with(Post.count_cache_key("aaa score:42"), 1, 1)
Cache.expects(:put).with(Post.count_cache_key("aaa score:42"), 1, 180)
Post.fast_count("aaa score:42")
end
end