mirror of
https://github.com/neocities/neocities.git
synced 2025-07-26 04:18:22 +02:00
use purge_all_cache instread of delete_all_cache
This commit is contained in:
parent
4c3daea4a8
commit
7b9107393b
3 changed files with 7 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue