File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 99namespace Vendic \OptimizeCacheSize \Plugin ;
1010
1111use Magento \Framework \View \DesignInterface ;
12+ use Magento \Store \Model \Store ;
1213use Magento \Store \Model \StoreManagerInterface ;
1314use Magento \Framework \Exception \LocalizedException ;
1415use Magento \Framework \View \Layout \ProcessorInterface ;
@@ -82,8 +83,8 @@ private function hasDbLayoutUpdate(string $handler): bool
8283
8384 if (!isset ($ this ->dbLayoutHandlers [$ storeId ][$ themeId ][$ handler ])) {
8485 $ updateCollection = $ this ->layoutUpdateCollectionFactory ->create ();
85- $ updateCollection ->addStoreFilter ($ storeId );
8686 $ updateCollection ->addThemeFilter ($ themeId );
87+ $ updateCollection ->addFieldToFilter ('store_id ' , [$ storeId , Store::DEFAULT_STORE_ID ]);
8788 $ updateCollection ->addFieldToFilter ('handle ' , $ handler );
8889 $ this ->dbLayoutHandlers [$ storeId ][$ themeId ][$ handler ] = $ updateCollection ->getSize () > 0 ;
8990 }
You can’t perform that action at this time.
0 commit comments