Added method to clear the cache