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

@ -105,7 +105,7 @@ class SiteFile < Sequel::Model
DB['update sites set space_used=space_used-? where id=?', size, site_id].first
end
site.delete_cache site.files_path(path)
site.purge_cache site.files_path(path)
SiteChangeFile.filter(site_id: site_id, filename: path).delete
end
end