Updated the caching scripts