public function getCacheMode($params) { if (isset($params['token'])) { return 'private'; } return parent::getCacheMode($params); }