Enable cache in example code