This commit is contained in:
Toks
2015-04-17 09:58:57 -04:00
parent e354534e61
commit d21e94f519

View File

@@ -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