update cache file