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
12
12
13
13
public function onCacheRefresh (Varien_Event_Observer $ event )
14
14
{
15
- $ eventType = $ event ->getType ();
16
- if ($ eventType === ConfigurationBuilder::MODEL_ALIAS || is_null ($ eventType )) {
15
+ if ($ event ->getType () === ConfigurationBuilder::MODEL_ALIAS ) {
17
16
$ this ->clearCache ();
18
17
}
19
18
}
20
19
20
+ public function onCacheFlush ()
21
+ {
22
+ $ this ->clearCache ();
23
+ }
24
+
21
25
public function onPreDispatch (Varien_Event_Observer $ event )
22
26
{
23
27
$ controller = $ event ->getControllerAction ();
Original file line number Diff line number Diff line change 27
27
<inviqa_symfonyContainer >
28
28
<class >Inviqa_SymfonyContainer_Model_Observer</class >
29
29
<type >singleton</type >
30
- <method >onCacheRefresh </method >
30
+ <method >onCacheFlush </method >
31
31
</inviqa_symfonyContainer >
32
32
</observers >
33
33
</adminhtml_cache_flush_all >
36
36
<inviqa_symfonyContainer >
37
37
<class >Inviqa_SymfonyContainer_Model_Observer</class >
38
38
<type >singleton</type >
39
- <method >onCacheRefresh </method >
39
+ <method >onCacheFlush </method >
40
40
</inviqa_symfonyContainer >
41
41
</observers >
42
42
</adminhtml_cache_flush_system >
You can’t perform that action at this time.
0 commit comments