Update lock file and cache