Skip to content
  • James Coleman's avatar
    fce3dbf3
    Don't bust AR query cache when types are not same object · fce3dbf3
    James Coleman authored
    AR's query cache currently depends on the type objects being not only
    equivalent but also to be the same object. Either reloading the type
    information or using custom type objects that aren't cached will
    unnecessarily bust the cache.
    
    This is fixed in 5.0 as an ancillary part of 574f2556
    but here I also add a test for the condition.
    fce3dbf3
    Don't bust AR query cache when types are not same object
    James Coleman authored
    AR's query cache currently depends on the type objects being not only
    equivalent but also to be the same object. Either reloading the type
    information or using custom type objects that aren't cached will
    unnecessarily bust the cache.
    
    This is fixed in 5.0 as an ancillary part of 574f2556
    but here I also add a test for the condition.
Loading