fixes to tag alias cache expiration, improved instructions for sign up

This commit is contained in:
albert
2013-03-13 12:15:56 -04:00
parent b40df085d6
commit 656d591806
12 changed files with 47 additions and 33 deletions

View File

@@ -28,6 +28,8 @@ class TagAliasesController < ApplicationController
def destroy
@tag_alias = TagAlias.find(params[:id])
@tag_alias.update_column(:status, "deleted")
@tag_alias.clear_all_cache
@tag_alias.destroy
respond_with(@tag_alias, :location => tag_aliases_path)
end
@@ -38,10 +40,4 @@ class TagAliasesController < ApplicationController
@tag_alias.delay(:queue => "default").process!
respond_with(@tag_alias, :location => tag_alias_path(@tag_alias))
end
def cache
@tag_alias = TagAlias.find(params[:id])
@tag_alias.clear_cache
render :nothing => true
end
end