From ee791d3f40913fa57d878aecb9bf8c86ea27e3b4 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Wed, 26 Jun 2019 16:19:59 -0700 Subject: Enable Gitaly ref caching for SearchController As we noticed in https://gitlab.com/gitlab-org/gitlab-ce/issues/56627#note_185828742, clicking on the "Issues" tab often requests the same reference in rendering Markdown. --- app/controllers/projects/application_controller.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'app/controllers/projects/application_controller.rb') diff --git a/app/controllers/projects/application_controller.rb b/app/controllers/projects/application_controller.rb index 80e4f54bbf4..90396c15375 100644 --- a/app/controllers/projects/application_controller.rb +++ b/app/controllers/projects/application_controller.rb @@ -87,10 +87,4 @@ class Projects::ApplicationController < ApplicationController def check_issues_available! return render_404 unless @project.feature_available?(:issues, current_user) end - - def allow_gitaly_ref_name_caching - ::Gitlab::GitalyClient.allow_ref_name_caching do - yield - end - end end -- cgit v1.2.1