Commit a4185fc7 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Add comment about the sequence when removing the pages

parent 64d5d672
......@@ -1007,6 +1007,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