<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gj |</title>
	<atom:link href="https://blog.gaiterjones.com/category/magento/static-blocks/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.gaiterjones.com/category/magento/static-blocks/</link>
	<description>gaiterjones</description>
	<lastBuildDate>Tue, 18 Aug 2015 07:23:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>
	<item>
		<title>BUG : Magento 1.9.2.0 CE Static Block Cache Bug</title>
		<link>https://blog.gaiterjones.com/magento-1-9-2-0-ce-static-block-cache-bug/</link>
					<comments>https://blog.gaiterjones.com/magento-1-9-2-0-ce-static-block-cache-bug/#comments</comments>
		
		<dc:creator><![CDATA[PAJ]]></dc:creator>
		<pubDate>Tue, 21 Jul 2015 11:47:25 +0000</pubDate>
				<category><![CDATA[bug]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[static blocks]]></category>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=1383</guid>

					<description><![CDATA[NOTE &#8211; this bug was patched in MAGE 1.9.2.1 If you upgraded Magento to version 1.9.2 to fix the recent (July 2015) security vulnerabilities your Magento shop now has a bug...<a class="more-link" href="https://blog.gaiterjones.com/magento-1-9-2-0-ce-static-block-cache-bug/" title="Continue reading">Continue reading</a>]]></description>
										<content:encoded><![CDATA[<p><strong>NOTE &#8211; this bug was patched in MAGE 1.9.2.1</strong></p>
<p>If you <a href="https://blog.gaiterjones.com/upgrade-magento-ce-1-9-1-x-to-1-9-2-0/">upgraded Magento to version 1.9.2</a> to fix the recent (July 2015) security vulnerabilities your Magento shop now has a bug affecting static blocks.</p>
<p>Magento CE 1.9.2.0 released on the 7th of July 2015 introduced a <a href="http://www.magentocommerce.com/bug-tracking/issue/index/id/870" target="_blank">bug </a>that causes cached static cms blocks to display incorrectly. An error in the Core application code caches the static block data with a non unique cache identifier. This means that the first static block to be cached will quite likely then be displayed when further static blocks are requested from cache resulting in the wrong content being displayed.</p>
<p>This bug has been registered with Magento as <a href="http://www.magentocommerce.com/bug-tracking/issue/index/id/870" target="_blank">issue number 7817</a> and as of the time of writing an official patch has not been issued.</p>
<p>The Magento community responded to the issue coming up with <a href="http://magento.stackexchange.com/questions/73685/magento-1-9-2-0-static-block-display-issues" target="_blank">various workarounds and fixes</a>, the simplest of which is to disable the Blocks/Html output cache in Magento. There is also code available to extend and patch the offending Magento core code as well as <a href="https://github.com/progammer-rkt/Rkt_SbCache" target="_blank">a free module that modifies the cache keys used for static blocks</a> via an observer that I have confirmed fixes the behaviour caused by the bug.</p>
<p><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-1387" src="https://blog.gaiterjones.com/wp-content/uploads/2015/07/disable-block-output-cache.jpg" alt="Disable magento block output cache" width="364" height="220" /></p>
<p>So what should you do? If you can disable the blocks HTML output cache and wait for the official patch from Magento then this is an acceptable short term quick fix that will resolve the problem.</p>
<p>In the long term, until a Magento patch is released and keeping all your caches enabled is important to you then install and test the <a href="https://github.com/progammer-rkt/Rkt_SbCache" target="_blank">Rkt_Sbcache</a> module. It implements the workarounds discussed by the community changing the cache key of static blocks via an observer.</p>
<p>Install Rkt_Sbcache with modman : <strong><em>modman clone https://github.com/gaiterjones/Rkt_SbCache.git</em></strong></p>
<p>This bug highlights the importance of testing new release code and the benefits of waiting for an incremental release of an update before upgrading. It also stresses the importance of thorough testing with a system that mirrors your live environment. I <em>thought</em> I had tested this version thoroughly, but I did all my testing on a development server with caching disabled and whilst I did test on a staging server with caching enabled I was not thorough enough to identify the duplication of static blocks &#8211; <em>doh</em>!</p>
<p>It is reassuring to know that the community is actively supporting Magento and that for CE users information is readily available to help workaround or fix a bug like this.</p>
<p>Resources</p>
<ul>
<li><a href="http://magento.stackexchange.com/questions/73685/magento-1-9-2-0-static-block-display-issues" target="_blank">http://magento.stackexchange.com/questions/73685/magento-1-9-2-0-static-block-display-issues</a></li>
<li><a href="https://github.com/progammer-rkt/Rkt_SbCache" target="_blank">https://github.com/progammer-rkt/Rkt_SbCache</a></li>
<li><a href="http://magento.stackexchange.com/questions/71705/cms-block-caching-issue-in-ee-1-14-2" target="_blank">http://magento.stackexchange.com/questions/71705/cms-block-caching-issue-in-ee-1-14-2</a></li>
<li><a href="http://magento.stackexchange.com/questions/73538/static-blocks-shown-crazy-in-frontend/73558#73558" target="_blank">http://magento.stackexchange.com/questions/73538/static-blocks-shown-crazy-in-frontend/73558#73558</a></li>
<li><a href="http://www.magentocommerce.com/bug-tracking/issue/index/id/870" target="_blank">http://www.magentocommerce.com/bug-tracking/issue/index/id/870</a></li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.gaiterjones.com/magento-1-9-2-0-ce-static-block-cache-bug/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
	</channel>
</rss>
