diff options
-rw-r--r-- | app/models/project.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 7a5bf77c5a9..8a8aca44945 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -1186,6 +1186,9 @@ class Project < ActiveRecord::Base end def remove_pages + # 1. We rename pages to temporary directory + # 2. We wait 5 minutes, due to NFS caching + # 3. We asynchronously remove pages with force temp_path = "#{path}.#{SecureRandom.hex}" if Gitlab::PagesTransfer.new.rename_project(path, temp_path, namespace.path) |