File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
app/code/Magento/Catalog/Model Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -69,11 +69,6 @@ class Product extends \Magento\Catalog\Model\AbstractModel implements
69
69
*/
70
70
public const CACHE_PRODUCT_CATEGORY_TAG = 'cat_c_p ' ;
71
71
72
- /**
73
- * New product cache tag used for New Products widget
74
- */
75
- public const NEW_PRODUCT_CACHE_TAG = 'cat_p_new ' ;
76
-
77
72
/**
78
73
* Product Store Id
79
74
*/
@@ -2385,6 +2380,7 @@ private function getProductCategoryIdentities(array $categoryIds): array
2385
2380
* Get identities
2386
2381
*
2387
2382
* @return array
2383
+ * @SuppressWarnings(PHPMD.CyclomaticComplexity)
2388
2384
*/
2389
2385
public function getIdentities ()
2390
2386
{
@@ -2414,7 +2410,7 @@ public function getIdentities()
2414
2410
$ isProductNew = $ this ->getOrigData ('news_from_date ' ) != $ this ->getData ('news_from_date ' )
2415
2411
|| $ this ->isObjectNew ();
2416
2412
if ($ isProductNew && ($ isStatusChanged || $ this ->getStatus () == Status::STATUS_ENABLED )) {
2417
- $ identities [] = self :: NEW_PRODUCT_CACHE_TAG ;
2413
+ $ identities [] = \ Magento \ Catalog \ Block \ Product \NewProduct:: CACHE_TAG ;
2418
2414
}
2419
2415
2420
2416
return array_unique ($ identities );
You can’t perform that action at this time.
0 commit comments