use purge_all_cache instread of delete_all_cache

This commit is contained in:
Kyle Drake 2023-11-21 16:57:49 -06:00
parent 4c3daea4a8
commit 7b9107393b
3 changed files with 7 additions and 11 deletions

View file

@ -92,8 +92,8 @@ post '/settings/:username/change_name' do
}
old_site.delete_all_thumbnails_and_screenshots
old_site.delete_all_cache
@site.delete_all_cache
old_site.purge_all_cache
@site.purge_all_cache
@site.regenerate_thumbnails_and_screenshots
flash[:success] = "Site/user name has been changed. You will need to use this name to login, <b>don't forget it!</b>"