/** * Get cache oarameters * * @return array */ protected function getCacheParameters() { $list = parent::getCacheParameters(); $list[] = $this->getCategoryId(); $auth = \XLite\Core\Auth::getInstance(); $list[] = $auth->isLogged() && $auth->getProfile()->getMembership() ? $auth->getProfile()->getMembership()->getMembershipId() : '-'; return $list; }
/** * Get cache parameters * * @return array */ protected function getCacheParameters() { $list = parent::getCacheParameters(); $list[] = $this->getCategoryId(); return $list; }