Skip to content
  • Douwe Maan's avatar
    Merge branch 'sh-optimize-read-only-check' into 'master' · 0108b52b8529
    Douwe Maan authored
    Optimize read-only middleware so that it does not consume as much CPU
    
    Closes #40185 and gitlab-com/infrastructure#3240
    
    See merge request gitlab-org/gitlab-ce!15504
    
    (cherry picked from commit 6c3398165469de7890cd7881b175858f7c6be8e5)
    
    3c52e2f0 Optimize read-only middleware so that it does not consume as much CPU
    cba68d33 use `Gitlab::Routing.url_helpers` instead of `Rails.application.routes.url_helpers`
    91075c82 check for `read_only?` first before seeing if request is disallowed
    aeb2f49f Revert "check for `read_only?` first before seeing if request is disallowed"
    0108b52b8529