Broken logic in get cache version