change cache version to classvariable in apiv2