Support auto clean cache.