fast count fix
This commit is contained in:
@@ -625,6 +625,7 @@ class Post < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
count
|
count
|
||||||
rescue ActiveRecord::StatementInvalid
|
rescue ActiveRecord::StatementInvalid
|
||||||
|
set_count_in_cache(tags, rand(24) * 1.hour)
|
||||||
1_000_000
|
1_000_000
|
||||||
rescue SearchError
|
rescue SearchError
|
||||||
0
|
0
|
||||||
|
|||||||
Reference in New Issue
Block a user