update local cache for tag alias updates before updating other servers
This commit is contained in:
@@ -49,7 +49,10 @@ class TagAlias < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def clear_all_cache
|
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(antecedent_name)
|
||||||
TagAlias.delay(:queue => host).clear_cache_for(consequent_name)
|
TagAlias.delay(:queue => host).clear_cache_for(consequent_name)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user