Modified automatic cache invalidation