![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/app/code/Soon/AdvancedCache/Model/Engine/Type/ |
<?php namespace Soon\AdvancedCache\Model\Engine\Type; class CmsBlock extends Standard { /** * No current full action name or current params for CMS block key granularity (compared to Standard engine) * Content of a CMS block is always same, does not matter current page and/or current GET params * * @return mixed|void */ public function buildCacheKey() { $cacheKey = [ $this->getBlock()->getData('block_id'), $this->getBlock()->getNameInLayout(), $this->getStoreId(), $this->getDesign()->getDesignTheme()->getId() ]; // phpcs:ignore Magento2.Security.InsecureFunction $this->key = md5(implode($cacheKey)); } }