diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-12-18 15:15:12 +0300 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-02-01 01:53:56 +0300 |
commit | 3fbe9b3b49d871071e16dad215e9af0e4dd68e42 (patch) | |
tree | 8ac4204926ef5472abd30d8923bdf9b131d4b2c8 /app/models/project.rb | |
parent | 2c6a852529cc42507e45d1266489df491ef1b893 (diff) |
Add comment about the sequence when removing the pages
Diffstat (limited to 'app/models/project.rb')
-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) |