Fix: dangerous access to cache version since very old caches may not even have a "version" property.