Added functionality to let caches expire.