Update invalidate_cache to accept user id