mirror of
https://github.com/neocities/neocities.git
synced 2025-07-24 11:28:29 +02:00
Fix for cache purging for subdir default indexes
This commit is contained in:
parent
46b402a633
commit
0428a1246e
3 changed files with 15 additions and 6 deletions
|
@ -634,6 +634,7 @@ class Site < Sequel::Model
|
|||
PurgeCacheOrderWorker.perform_async username, relative_path
|
||||
|
||||
purge_file_path = Pathname(relative_path).dirname.to_s
|
||||
purge_file_path += '/' if purge_file_path != '/'
|
||||
|
||||
PurgeCacheOrderWorker.perform_async username, '/?surf=1' if purge_file_path == '/'
|
||||
PurgeCacheOrderWorker.perform_async username, purge_file_path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue