update local cache for tag alias updates before updating other servers

This commit is contained in:
r888888888
2013-09-04 17:54:42 -07:00
parent bd4b018e83
commit 0845c61908

View File

@@ -49,7 +49,10 @@ class TagAlias < ActiveRecord::Base
end
def clear_all_cache
Danbooru.config.all_server_hosts.each do |host|
TagAlias.clear_cache_for(antecedent_name)
TagAlias.clear_cache_for(consequent_name)
Danbooru.config.other_server_hosts.each do |host|
TagAlias.delay(:queue => host).clear_cache_for(antecedent_name)
TagAlias.delay(:queue => host).clear_cache_for(consequent_name)
end