fast count fix

This commit is contained in:
albert
2013-01-06 13:53:13 -05:00
parent 4ef675af9e
commit 9952eed85b

View File

@@ -625,6 +625,7 @@ class Post < ActiveRecord::Base
end
count
rescue ActiveRecord::StatementInvalid
set_count_in_cache(tags, rand(24) * 1.hour)
1_000_000
rescue SearchError
0