Commit 3fbe9b3b authored by Kamil Trzcinski's avatar Kamil Trzcinski Committed by James Edwards-Jones

Add comment about the sequence when removing the pages

parent 2c6a8525
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment