Two Magento instances on the same server

As I have got issues during my last magento upgrade, I have decided to move my development instance of Magento on the server than the production instance of Magento.

I am using memcached and you must take that there is not conflict between the two instances. The solution is to configure a prefix.

You will find below an extract of my app/etc/local.xml file:

<config>
 <global>
 <cache>
 <backend>memcached</backend>
 <prefix>dev_</prefix>
 <slow_backend>database</slow_backend>
 <slow_backend_store_data>0</slow_backend_store_data>
 <auto_refresh_fast_cache>1</auto_refresh_fast_cache>
 <lifetime>259200</lifetime>
 <backend_options>
 <servers>
 <server>
 <host><![CDATA[127.0.0.1]]></host>
 <port><![CDATA[11212]]></port>
 <persistent><![CDATA[1]]></persistent>
 <weight><![CDATA[2]]></weight>
 <timeout><![CDATA[5]]></timeout>
 <retry_interval><![CDATA[5]]></retry_interval>
 <status><![CDATA[1]]></status>
 </server>
 </servers>
 <compression><![CDATA[0]]></compression>
 </backend_options>
 </cache>
 </global>
</config>

So just add the prefix tag and specify your prefix, dev_  for example, for your cached backend.

Voila,

You may be interrested by my Magento Module API  : Myapi_Myconf !

Nicolas Portais
Author Photographer
http://www.mystockphoto.fr

Ce contenu a été publié dans Magento, avec comme mot(s)-clé(s) , , , , , , , . Vous pouvez le mettre en favoris avec ce permalien.

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Captcha (solve the arithmetic equation) * Time limit is exhausted. Please reload CAPTCHA.