• E
    Fix query cache to load before first request · 349db176
    Eileen Uchitelle 提交于
    In a test app we observed that the query cache was not enabled on the
    first request. This was because the query cache hooks are installed on
    load and active record is loaded in the middle of the first request.
    
    If we remove the `on_load` from the railtie the query cache hooks will
    be installed before the first request, allowing the cache to be enabled
    on that first request.
    
    This is ok because query cache doesn't load anything else, only itself
    so we're not eager loading all of active record before the first
    request, just the query cache hooks.
    
    [Eileen M. Uchitelle & Matthew Draper]
    349db176
loading_test.rb 10.8 KB