Rename _cache to _registry in template registration