문제

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