Fix for cache purging for subdir default indexes

This commit is contained in:
Kyle Drake 2017-01-29 00:00:25 -08:00
parent 46b402a633
commit 0428a1246e
3 changed files with 15 additions and 6 deletions

View file

@ -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