better structure for cache purge

This commit is contained in:
Kyle Drake 2014-08-11 20:45:43 -07:00
parent be128608b9
commit 63d9348012
3 changed files with 23 additions and 9 deletions

2
app.rb
View file

@ -557,7 +557,7 @@ post '/change_name' do
}
old_file_paths.each do |file_path|
PurgeCacheWorker.async_queue "#{old_host}/#{file_path}"
current_site.purge_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>."