All Versions
23
Latest Version
Avg Release Cycle
-
Latest Release
-

Changelog History
Page 1

  • v1.1.0 Changes

    ๐Ÿ›  Fixes

    • ๐Ÿ›  Fix double debug logging of cache hits and misses (#474)
    • ๐Ÿ›  Fix a Rails 6.1 deprecation warning for Rails 7.0 compatibility (#482)
    • Recursively install parent expiry hooks when expiring parent caches (#476)
    • Expire caches before other after_commit callbacks (#471)
    • โšก๏ธ Avoid unnecessary record cache expiry on save with no DB update (#464)
    • ๐Ÿ›  Fix an Active Record deprecation warning by not using Connection#type_cast (#459)
    • Fix broken prefetch_associations of a polymorphic cache_belongs_to (#461)
    • ๐Ÿ‘‰ Fix should_use_cache? check to avoid calling it on the wrong class (#454)
    • ๐Ÿ›  Fix fetch has_many embedded association on record after adding to it (#449)

    ๐Ÿ”‹ Features

    • ๐Ÿ‘‰ Support multiple databases and transactional tests in IdentityCache.should_use_cache? (#293)
    • โž• Add support for the default MemCacheStore from ActiveSupport (#465)

    ๐Ÿ’ฅ Breaking Changes

    • โฌ‡๏ธ Drop ruby 2.4 support, since it is no longer supported upstream (#468)
  • v1.0.1 Changes

    • Fix expiry of cache_has_one association with scope and embed: :id (#442)
  • v1.0.0 Changes

    • Remove inverse_name option. Specify inverse_of on the Active Record association instead. (#439)
    • โฌ†๏ธ Bump the minimum Active Record version to 5.2 (#438)
    • Remove the default embed option value from cache_has_one (#437)
    • Lazily evaluate nested includes to fetch blobs in batches (#427)
    • Only cache embedded association IDs when present (#397)
    • โž• Add support for ID embedded has_one cached associations (#393)
    • โž• Add support for polymorphic belongs_to cached associations (#387)
    • Add fetch_multi_by_* support for cache_index with a single field (#368)
    • โœ‚ Remove support for rails 4.2 (#355)
    • Type cast values using attribute types before using in cache key (#354)
    • Set inverse cached association for cache_has_one on cache hit (#345)
    • ๐Ÿ‘‰ Use ActiveSupport:Notifications to notify subscribers of hydration events (#341)
    • Remove disable_primary_cache_index (#335)
    • Remove deprecated embed: false cache_has_many option (#335)
    • ๐Ÿ›  Fix column name in the preload association query when using custom primary keys (#338)
    • Raise when trying to cache a belong_to association with a scope. Previously the scope was ignored on a cache hit (#323)
    • Remove deprecated never_set_inverse_association option (#319)
    • Lazy load associated classes (#306)
  • v0.5.1 Changes

    • Fix bug in prefetch_associations for cache_has_one associations that may be nil
  • v0.5.0 Changes

    • never_set_inverse_association and fetch_read_only_records are now true by default (#315)
    • Store the class name instead of the class itself (#311)
  • v0.4.1 Changes

    • ๐Ÿ—„ Deprecated embedded associations on models that don't use IDC (#305)
    • โœ‚ Remove a respond_to? check that hides mistakes in includes hash (#307)
    • โฌ‡๏ธ Drop ruby 2.1 support (#301)
    • Avoid querying when no ids are passed to fetch_multi (#297)
    • ๐Ÿ›  Fix fetching already loaded belongs_to association (#294)
    • ๐Ÿ‘‰ Move should_use_cache? calls to the model-level (#291)
    • ๐Ÿ‘ฏ Clone instead of dup record when readonlyifying fetched records (#292)
    • Consistently store the array for cached has many associations (#288)
  • v0.4.0 Changes

    • 0๏ธโƒฃ Return an array from fetched association to prevent chaining. Up to now, a relation was returned by default. (#287)
  • v0.3.2 Changes

    • Deprecate returning non read-only records when cache is used. Set IdentityCache.fetch_readonly_records to true to avoid this. (#282)
    • Use loaded association first when fetching a cache_has_many id embedded association (#280)
    • Deprecate setting the inverse active record association on cache hits. Set IdentityCache.never_set_inverse_association to true to avoid this. (#279)
    • Fetch association returns relation or array depending on the configuration. It was only returning a relation for cache_has_many fetch association methods. (#276)
    • Stop sharing the same attributes hash between the fetched record and the memoized cache, which could interfere with dirty tracking (#267)
  • v0.3.1 Changes

    • ๐Ÿ›  Fix cache_index for non-id primary key
  • v0.3.0 Changes

    • Add support for includes option on cache_index and fetch_by_id
    • ๐Ÿ‘‰ Use ActiveRecord instantiate
    • Add association pre-fetching support for fetch_by_id
    • โœ‚ Remove support for 3.2
    • ๐Ÿ›  Fix N+1 from fetching embedded ids on a cache miss
    • Raise when trying to cache a through association. Previously it wouldn't be invalidated properly.
    • Raise if a class method is called on a scope. Previously the scope was ignored.
    • Raise if a class method is called on a subclass of one that included IdentityCache. This never worked properly.
    • Fix cache_belongs_to on polymorphic assocations.
    • Fetching a cache_belongs_to association no longer loads the belongs_to association