add a way to invalidate the cache