File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,16 @@ class Inviqa_SymfonyContainer_Model_Observer
1212
1313 public function onCacheRefresh (Varien_Event_Observer $ event )
1414 {
15- $ eventType = $ event ->getType ();
16- if ($ eventType === ConfigurationBuilder::MODEL_ALIAS || is_null ($ eventType )) {
15+ if ($ event ->getType () === ConfigurationBuilder::MODEL_ALIAS ) {
1716 $ this ->clearCache ();
1817 }
1918 }
2019
20+ public function onCacheFlush ()
21+ {
22+ $ this ->clearCache ();
23+ }
24+
2125 public function onPreDispatch (Varien_Event_Observer $ event )
2226 {
2327 $ controller = $ event ->getControllerAction ();
Original file line number Diff line number Diff line change 2727 <inviqa_symfonyContainer >
2828 <class >Inviqa_SymfonyContainer_Model_Observer</class >
2929 <type >singleton</type >
30- <method >onCacheRefresh </method >
30+ <method >onCacheFlush </method >
3131 </inviqa_symfonyContainer >
3232 </observers >
3333 </adminhtml_cache_flush_all >
3636 <inviqa_symfonyContainer >
3737 <class >Inviqa_SymfonyContainer_Model_Observer</class >
3838 <type >singleton</type >
39- <method >onCacheRefresh </method >
39+ <method >onCacheFlush </method >
4040 </inviqa_symfonyContainer >
4141 </observers >
4242 </adminhtml_cache_flush_system >
You can’t perform that action at this time.
0 commit comments