WIP: clear env cache when pruning environments.