Use pytestconfig instead of request.config in cache example
to be consistent with the API documentation.