Skip to content

Commit

Permalink
Fix: it should always use the cache store specified in the config
Browse files Browse the repository at this point in the history
  • Loading branch information
khiav223577 committed Apr 2, 2021
1 parent e26adb6 commit 130b2e1
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 130b2e1

Please sign in to comment.