The patch speeds up the cache invalidation in the registry, and make most models use the generic method `clear_caches` instead of specific `clear_cache` methods.