mirror of
https://github.com/neocities/neocities.git
synced 2025-05-13 07:57:16 +02:00
better structure for cache purge
This commit is contained in:
parent
be128608b9
commit
63d9348012
3 changed files with 23 additions and 9 deletions
2
app.rb
2
app.rb
|
@ -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>."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue