Magento News

 

Magento: Mage::getStoreConfig() and Cache

I was recently needing to regularly access config values in Magento that can change frequently. My module was working as needed until cache was enabled. I remembered then that Magento stores all of the configuration values in cache. To remedy this issue, I put the following code in before I called the needed values with Mage::getStoreConfig():

Mage::app()->getCacheInstance()->cleanType('config');


Magento: Mage::getStoreConfig() and Cache

Possibly Related Posts:


 

Leave a Reply