#2363 no timeout
This commit is contained in:
@@ -257,6 +257,8 @@ class TagAlias < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def self.update_cached_post_counts_for_all
|
||||
execute_sql("UPDATE tag_aliases SET post_count = tags.post_count FROM tags WHERE tags.name = tag_aliases.consequent_name")
|
||||
TagAlias.without_timeout do
|
||||
execute_sql("UPDATE tag_aliases SET post_count = tags.post_count FROM tags WHERE tags.name = tag_aliases.consequent_name")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user