Blog

How to Insert “Must-Revalidate” for Magento Cache

This tip is helpful to stop the client from caching content.

Directions:

Open your local XML file.

This can be found in the [Magento Root]/app/etc/local.xml

Locate the follow area under the <global> node, and insert the code from line 26:

<config>
<global>
<install>
<date><![CDATA[Mon, 27 Sep 2010 12:23:53 +0000]]></date>
</install>
<crypt>
<key><![CDATA[demo]]></key>
</crypt>
<disable_local_modules>false</disable_local_modules>
<resources>
<db>
<table_prefix><![CDATA[]]></table_prefix>
</db>
<default_setup>
<connection>
<host><![CDATA[localhost]]></host>
<username><![CDATA[magento_user]]></username>
<password><![CDATA[]]></password>
<dbname><![CDATA[magento]]></dbname>
<active>1</active>
</connection>
</default_setup>
</resources>
<session_save><![CDATA[files]]></session_save>
<!-- Add the code below this line-->
<session_cache_limiter><![CDATA[nocache]]></session_cache_limiter><!-- see http://php.net/manual/en/function.session-cache-limiter.php#82174 for possible values -->
<!-- Add the code above this line-->
</global>

After you save and commit your changes, clear your Magento cache for the site.

Log into your Magento Dashbaord, and go to Systems > Cache Management

Next, select all the the Cache Types. Set your Action to: Refresh, and click the orange Submit button

We advise not to run this action for more than a week to maintain positive performance.

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>