bug fixes

This commit is contained in:
albert
2013-03-06 01:13:41 -05:00
parent e53d71b31b
commit ad19ae5542
5 changed files with 13 additions and 12 deletions

View File

@@ -97,11 +97,11 @@ class TagAlias < ActiveRecord::Base
def clear_all_cache
Danbooru.config.all_server_hosts.each do |host|
delay(:queue => host).clear_cache(host)
delay(:queue => host).clear_cache
end
end
def clear_cache(host = Socket.gethostname)
def clear_cache
Cache.delete("ta:#{Cache.sanitize(antecedent_name)}")
Cache.delete("ta:#{Cache.sanitize(consequent_name)}")
end