iFUEL INTERACTIVE

A NY Interactive Agency and a Division of Agency212

See you on Flickr See you on Twitter See you on FaceBook Subscribe
How to Insert “Must-Revalidate” for Magento Cache
June 1st, 2012  |  1 COMMENT  |  Uncategorized

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.

COMMENTS

LEAVE COMMENT
Your name:  (required)

Your email:  (required, will not be published)

Website:  (not required)

Message:  (required)

Categories
Archives
Tags
From Our Twitter (@ifuel)
Our Interactive Agency on Facebook
Copyright iFuel Interactive © 2010. All Rights Reserved.
Going up? Click here.A NY INTERACTIVE AGENCY