iFUEL INTERACTIVE

A NY Interactive Agency and a Division of Agency212

See you on Flickr See you on Twitter See you on FaceBook Subscribe

Archive for June, 2012

How to Insert “Must-Revalidate” for Magento Cache
June 1st, 2012  |  NO COMMENTS  |  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.

Read more

Copyright iFuel Interactive © 2010. All Rights Reserved.
Going up? Click here.A NY INTERACTIVE AGENCY