Update cache only if repository was updated