Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't bust AR query cache when types are not same object
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 574f255 but here I also add a test for the condition.
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters