Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.31 KB

CHANGELOG.md

File metadata and controls

44 lines (30 loc) · 1.31 KB

Changelog

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.

1.1.3

Fixed

  • Avoid calling methods that require a database connection when setting up belongs to caching.

1.1.2

Fixed

  • Do not cache records where only some of the columns have been loaded with a call to select.

1.1.1

Fixed

  • Fixed disabled and disable_cache methods to yield a block to match the documentation.

1.1.0

Added

  • 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

  • Changed fiber local variables used for disabling the cache to thread local variables.
  • Using find_by! on a relation will now use the cache.

1.0.1

Added

  • Preserve scope on relations terminated with a find_by.

1.0.0

Added

  • Add SupportTableCache concern to enable automatic caching on models when calling find_by with unique key parameters.