Fixed clearing caches after restart.