Fixed the wrong caches being cleared.