mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 16:51:36 +02:00
Use site_files instead of file_list when all file list is needed
This commit is contained in:
parent
b2bdcfd1f5
commit
8174db65e1
4 changed files with 9 additions and 10 deletions
|
@ -459,8 +459,8 @@ class Site < Sequel::Model
|
|||
FileUtils.mv files_path, File.join(BANNED_SITES_ROOT, username)
|
||||
}
|
||||
|
||||
file_list.each do |path|
|
||||
delete_cache path
|
||||
site_files.each do |site_file|
|
||||
delete_cache site_file.path
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue