sync-ing the cache file first

trying to sync the previous operations before we proceed with the
subsequent commands