File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
app/code/Magento/Backend/Console/Command Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,10 @@ protected function configure()
32
32
*/
33
33
protected function performAction (array $ cacheTypes )
34
34
{
35
- $ this ->eventManager ->dispatch ('adminhtml_cache_flush_system ' );
35
+ if ($ cacheTypes === [] || in_array ('full_page ' , $ cacheTypes )) {
36
+ $ this ->eventManager ->dispatch ('adminhtml_cache_flush_system ' );
37
+ }
38
+
36
39
$ this ->cacheManager ->clean ($ cacheTypes );
37
40
}
38
41
Original file line number Diff line number Diff line change @@ -32,7 +32,10 @@ protected function configure()
32
32
*/
33
33
protected function performAction (array $ cacheTypes )
34
34
{
35
- $ this ->eventManager ->dispatch ('adminhtml_cache_flush_all ' );
35
+ if ($ cacheTypes === [] || in_array ('full_page ' , $ cacheTypes )) {
36
+ $ this ->eventManager ->dispatch ('adminhtml_cache_flush_all ' );
37
+ }
38
+
36
39
$ this ->cacheManager ->flush ($ cacheTypes );
37
40
}
38
41
You can’t perform that action at this time.
0 commit comments