identity_cache icon indicating copy to clipboard operation
identity_cache copied to clipboard

Cache isn't invalidated by a counter cache update

Open dylanahsmith opened this issue 7 years ago • 0 comments

The counter_cache belongs_to option is implemented using update_all, which is done on the models update_counters and reset_counters class methods. Because these don't trigger an after_commit callback, we end up not invalidating the cache for the record.

dylanahsmith avatar Jan 23 '18 18:01 dylanahsmith