New version releases please visit https://github.com/hooopo/second_level_cache/releases
- Fix
undefined method klass
error for has_one through. (#123)
- Fix paranoia load error.
- Fix activerecord association cache. (#109)
- Fix fetch_by_uniq_key cache key with prefix. (#120)
- Improve proload debug log output, and deprecated logger method. (#106)
- Add has_one through cache support. (#98)
- Fix string query, eager_load, includes/preload for fetch from db. ( #103, #102, #101)
- Fix preloader if exists default scope. (#104)
- Change cache hit log as
DEBUG
level. (#105)
- Fix
fetch_by_uniq_keys
method that cache incorrect when A record modified uniq key and B reocrd used old uniq key of A record (#96)
- Fix methods argument as keyword warning in Ruby 2.7. (#94)
- Fix cache expire issue for SoftDelete cases.
- Rails 6 support.
- Fix cache expire for soft delete.
- Fix caching for STI model. (#78)
- Fix for work with Paranoia gem. (#77)
- Fix relation finder. (#75)
- Fix for support Rails 5.2;
- Now second_level_cache 2.4.x has required Rails > 5.2;
- Enable
frozen_string_literal = true
;
- Fix some cases will raise "uninitialized constant SecondLevelCache::Mixin" error. (#66)
- Use Model schema digest as cache_version, so you don't need set
:version
option now. (#60) - Fix
store
serialize option (#62) - Remove
acts_as_cached
method now! Please usesecond_level_cache
. (#59)
- Use
second_level_cache
instead ofacts_as_cached
method to setup in model. (#56)
- Fix warning in Ruby 2.4.0. (#54)
- Flush cache when belongs_to keys are changed; (#51)
- Fix #52 in ActiveRecord 5.0.1,
records_for
API has changed, it's want anActiveRecord::Relation
instance to include aload
method, but second_level_cached returned an Array. (#53) - Fix Rails 5.0.1
@second_level_cache_enabled
not define warning.
- Fix update conflict in same thread or request context for Cache object. (#49)
- Fix issue with Rails enums. (#43)
- Fix to update cache on
update_columns
,update_attribute
. (#43)
- Add
where(id: n).first
,where(id: n).last
hit cache support. This improve will avoid some gems query database, for example: devisecurrent_user
method.
- ActiveRecord 5 ready! Do not support ActiveRecord 4 and lower versions now (use second_level_cache 2.1.x).
- Requirement Ruby 2.3+.
- ActiveRecord 4 ready!
- read multi support for preloading.
Article.includes(:user).limit(5).to_a
will fetch all articles' users from cache preferentially. - remove dependency warning
- remove support for find_by_xx which will be removed in Rails 4.1
- [can disable/enable fetch_by_uinq_key method]
- [Fix Bug: serialized attribute columns marshal issue #11]
- [Fix bug: undefined method `select_all_column?' for []:ActiveRecord::Relation] by sishen
- [write through cache]
- [disable SecondLevelCache for spicial model]
- [only cache
SELECT *
query]
- [use new marshal machanism to avoid clear assocation cache manually]
- [add cache version to quick clear cache for special model]
- [fix errors when belongs_to association return nil]
- [cache has one assciation]
- [fix has one assciation issue]
- [clean cache after update_column/increment!/decrement!]
- [clean cache after touch]
- [fix polymorphic association bug]