Added methods to invalidate the cache