add test case for tag category changing, immediately update cache for tag category changes in local server
This commit is contained in:
@@ -86,7 +86,9 @@ class Tag < ActiveRecord::Base
|
||||
|
||||
def update_category_cache_for_all
|
||||
if category_changed?
|
||||
Danbooru.config.all_server_hosts.each do |host|
|
||||
update_category_cache
|
||||
|
||||
Danbooru.config.other_server_hosts.each do |host|
|
||||
delay(:queue => host).update_category_cache
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user