سؤال

The scenario is like this. I want to programmatically change config data and write those values to cache. I know changing config data through programmatically is possible and how to do. But how can I write those changed config values to cache?

Any suggestions will be appreciated.

Thanks in advance.

هل كانت مفيدة؟

المحلول

If you have the cache for config enabled those values will be automatically cached.
Just make sure you clear the config cache after you modify your values:

Mage::app()->getCacheInstance()->cleanType('config');
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top