Adjusted the cache purge strategy.