/**
  * Get Key for caching block content
  *
  * @return string
  */
 public function getCacheKey()
 {
     return parent::getCacheKey() . '-' . $this->getProduct()->getId();
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function getCacheKey()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getCacheKey');
     if (!$pluginInfo) {
         return parent::getCacheKey();
     } else {
         return $this->___callPlugins('getCacheKey', func_get_args(), $pluginInfo);
     }
 }