Skip to content

Commit

Permalink
Merge pull request #58 from khiav223577/fix/cache_config
Browse files Browse the repository at this point in the history
Fix: it should always use the cache store specified in the config
  • Loading branch information
khiav223577 authored Apr 2, 2021
2 parents e26adb6 + 130b2e1 commit 2d02333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_model_cachers/cache_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def peek(binding: nil, reflect: nil)

def clean_cache(binding: nil, reflect: nil)
@cached_data = nil
Rails.cache.delete(cache_key)
ActiveModelCachers.config.store.delete(cache_key)
return nil
end

Expand Down

0 comments on commit 2d02333

Please sign in to comment.