@@ -73,8 +73,10 @@ public function overrideEnvironment(Varien_Simplexml_Config $xmlConfig)
73
73
$ nodePath = $ this ->buildNodePath ($ scope , $ path );
74
74
$ xmlConfig ->setNode ($ nodePath , $ value );
75
75
try {
76
- $ store = Mage::app ()->getStore (0 );
77
- $ this ->setCache ($ store , $ value , $ path );
76
+ foreach (['0 ' , 'admin ' ] as $ store ) {
77
+ $ store = Mage::app ()->getStore ($ store );
78
+ $ this ->setCache ($ store , $ value , $ path );
79
+ }
78
80
} catch (Throwable $ exception ) {
79
81
Mage::logException ($ exception );
80
82
}
@@ -90,8 +92,10 @@ public function overrideEnvironment(Varien_Simplexml_Config $xmlConfig)
90
92
$ xmlConfig ->setNode ($ nodePath , $ value );
91
93
try {
92
94
if (!str_contains ($ nodePath , 'websites ' )) {
93
- $ store = Mage::app ()->getStore ($ storeCode );
94
- $ this ->setCache ($ store , $ value , $ path );
95
+ foreach ([$ storeCode , 'admin ' ] as $ store ) {
96
+ $ store = Mage::app ()->getStore ($ store );
97
+ $ this ->setCache ($ store , $ value , $ path );
98
+ }
95
99
}
96
100
} catch (Throwable $ exception ) {
97
101
Mage::logException ($ exception );
0 commit comments