All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Avoid calling methods that require a database connection when setting up belongs to caching.
- Do not cache records where only some of the columns have been loaded with a call to
select
.
- Fixed disabled and disable_cache methods to yield a block to match the documentation.
- Added fetch_by and fetch_by! methods that can verify the result will be cacheable.
- Allow configuring cache storage on a per class basis.
- Allow disabling caching on per class basis.
- Added optimized in-memory cache implementation.
- Added support for caching belongs to assocations.
- Added test mode to intialize new caches within a test block.
- Changed fiber local variables used for disabling the cache to thread local variables.
- Using find_by! on a relation will now use the cache.
- Preserve scope on relations terminated with a
find_by
.
- Add SupportTableCache concern to enable automatic caching on models when calling
find_by
with unique key parameters.