better cache invalidation of notifications