Skip to content

Instantly share code, notes, and snippets.

@pascut
pascut / Block.php
Last active March 30, 2019 21:05
Temporary 'fix' for static block caching issue in Magento 1.9.3.8 (app/code/local/Mage/Cms/Block/Block.php)
<?php
/**
* ***************ATTENTION***************************************
* This is the temporary fix for the Magento 1.9.3.8 bug
* See http://magento.stackexchange.com/q/73685/3112?stw=2
* The only change from app/code/core/Mage/Cms/Block/Block.php
* is that the getCacheKeyInfo() function below is changed, I
* concatenated a string that contains the page url and the block id
* In this way the result will be unique each time.
* ****************************************************************