forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to ignore the query cache in a block. In the block, - queries will not be cached - queries will not be read from the cache - writes will not clear the cache - cached/uncached blocks will be ignored This is something we need for Solid Cache (see rails/solid_cache#123). As Solid Cache uses the database it gets the automatic query cache behaviour by default. But it would be better if it ignored the query cache entirely. The local cache already handles caching repeated reads and having cache writes clear the AR query cache is not desirable. `uncached` works for disabling reads doesn't disable clearing the cache for writes.
- Loading branch information
Showing
3 changed files
with
64 additions
and
3 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