Set post count cache when alias is first created
This commit is contained in:
@@ -87,6 +87,7 @@ class TagAlias < ActiveRecord::Base
|
|||||||
ensure_category_consistency
|
ensure_category_consistency
|
||||||
update_posts
|
update_posts
|
||||||
update_forum_topic_for_approve
|
update_forum_topic_for_approve
|
||||||
|
update_column(:post_count, consequent_tag.post_count)
|
||||||
update_column(:status, "active")
|
update_column(:status, "active")
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
update_column(:status, "error: #{e}")
|
update_column(:status, "error: #{e}")
|
||||||
|
|||||||
Reference in New Issue
Block a user