Skip to content

Instantly share code, notes, and snippets.

@hennevogel
Created February 11, 2019 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hennevogel/8b09f5a107cdca8b03ebdfcbe2f4e4a7 to your computer and use it in GitHub Desktop.
Save hennevogel/8b09f5a107cdca8b03ebdfcbe2f4e4a7 to your computer and use it in GitHub Desktop.
disable-failed-cache.patch
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