identity_cache
identity_cache copied to clipboard
Cache isn't invalidated by a counter cache update
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.