Created
February 11, 2019 16:29
-
-
Save hennevogel/8b09f5a107cdca8b03ebdfcbe2f4e4a7 to your computer and use it in GitHub Desktop.
disable-failed-cache.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/api/lib/backend/api/build_results/status.rb b/src/api/lib/backend/api/build_results/status.rb | |
index a685bd5ac3..e19226ff09 100644 | |
--- a/src/api/lib/backend/api/build_results/status.rb | |
+++ b/src/api/lib/backend/api/build_results/status.rb | |
@@ -48,10 +48,8 @@ module Backend | |
# Lists failed package builds in a project | |
# @return [String] | |
def self.failed_results(project_name) | |
- Rails.cache.fetch("failed_results-#{project_name}") do | |
- response = http_get(['/build/:project/_result', project_name], params: { code: %w[failed broken unresolvable] }, expand: [:code]) | |
- Xmlhash.parse(response) | |
- end | |
+ response = http_get(['/build/:project/_result', project_name], params: { code: %w[failed broken unresolvable] }, expand: [:code]) | |
+ Xmlhash.parse(response) | |
end | |
# Returns the log's size for a build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment