updating cache and getting latest versions