update all the caches