Skip to content

Disable Rails SQL query cache when applying service templates

Stan Hu requested to merge sh-service-template-bug into master

When the SQL query cache is active, the SELECT query for finding projects to apply service templates returns the same values. This causes an infinite loop because even though bulk INSERT queries are made, the cached results never reflect that progress. To fix this, we call Project.uncached around the query to ensure new data is retrieved.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63595

Edited by Stan Hu

Merge request reports