purge for delete and purge for refreshing

This commit is contained in:
Kyle Drake 2015-08-26 16:23:21 -07:00
parent 12a543d2aa
commit 985a2f8b60
7 changed files with 184 additions and 3 deletions

View file

@ -196,7 +196,7 @@ post '/settings/:username/change_name' do
}
old_file_paths.each do |file_path|
@site.purge_cache file_path
@site.delete_cache file_path
end
flash[:success] = "Site/user name has been changed. You will need to use this name to login, <b>don't forget it</b>."