Subject: | Simplify invalidate_cached_object() |
get_object_cache_key() normalizes caching to use the field defined by
get_cache_key_field().
invalidate_cached_object() however expires cache using the primary key
and all the unique fields defined for the class.
I think we can simplify invalidate_cached_object() to only expire cache
based on the field returned by get_cache_key_field(), or remove the
cache key normalization performed by get_object_cache_key().