updating cache file