summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmad Sherif <me@ahmadsherif.com>2018-03-20 20:37:16 +0100
committerAhmad Sherif <me@ahmadsherif.com>2018-03-21 18:08:09 +0100
commitd0a1da526e16e34421bfdb9728507b17b131ccb8 (patch)
tree0c81d37a1ccdd3e56188efba2a6ad6f23991b259
parent38bc4acb1c31d45937ecc318da06ac16faf234bb (diff)
downloadgitlab-ce-fix/remove-wiki-cache-clear.tar.gz
Remove calls to clear_cache from Git::Wikifix/remove-wiki-cache-clear
They were probably added to compensate for tests shortcomings, but now they don't complain. Closes gitaly#1095
-rw-r--r--lib/gitlab/git/wiki.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/gitlab/git/wiki.rb b/lib/gitlab/git/wiki.rb
index 52b44b9b3c5..8d82820915d 100644
--- a/lib/gitlab/git/wiki.rb
+++ b/lib/gitlab/git/wiki.rb
@@ -29,7 +29,6 @@ module Gitlab
@repository.gitaly_migrate(:wiki_write_page) do |is_enabled|
if is_enabled
gitaly_write_page(name, format, content, commit_details)
- gollum_wiki.clear_cache
else
gollum_write_page(name, format, content, commit_details)
end
@@ -40,7 +39,6 @@ module Gitlab
@repository.gitaly_migrate(:wiki_delete_page) do |is_enabled|
if is_enabled
gitaly_delete_page(page_path, commit_details)
- gollum_wiki.clear_cache
else
gollum_delete_page(page_path, commit_details)
end
@@ -51,7 +49,6 @@ module Gitlab
@repository.gitaly_migrate(:wiki_update_page) do |is_enabled|
if is_enabled
gitaly_update_page(page_path, title, format, content, commit_details)
- gollum_wiki.clear_cache
else
gollum_update_page(page_path, title, format, content, commit_details)
end