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()
3232 */
3333 protected function performAction (array $ cacheTypes )
3434 {
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+
3639 $ this ->cacheManager ->clean ($ cacheTypes );
3740 }
3841
Original file line number Diff line number Diff line change @@ -32,7 +32,10 @@ protected function configure()
3232 */
3333 protected function performAction (array $ cacheTypes )
3434 {
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+
3639 $ this ->cacheManager ->flush ($ cacheTypes );
3740 }
3841
You can’t perform that action at this time.
0 commit comments