/** * Get Key for caching block content * * @return string */ public function getCacheKey() { return parent::getCacheKey() . '-' . $this->getProduct()->getId(); }
/** * {@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); } }