• Heinrich Lee Yu's avatar
    Disable query cache when outside Rails executor · 23152fd9
    Heinrich Lee Yu authored
    When outside of the Rails executor context, we do not want to enable the
    query cache because the connection may never get released until the
    thread terminates.
    
    For example, this happens on console sessions or in long-running threads
    that do not work in a request context.
    
    Changelog: fixed
    23152fd9
load_balancer.rb 10.3 KB