Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * Get cache parameters
  *
  * @return array
  */
 protected function getCacheParameters()
 {
     $list = parent::getCacheParameters();
     $list[] = $this->getCategoryId();
     return $list;
 }