Skip to content

Commit 04ac73f

Browse files
ENGCOM-4055: 14857: prevent cache drop for frontend caches on sitemap generation #20818
- Merge Pull Request #20818 from david-fuehr/magento2:issue-14857-cache-drop-sitemap - Merged commits: 1. c3025f9
2 parents beb0274 + c3025f9 commit 04ac73f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Robots/Model/Config/Value.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Value extends ConfigValue implements IdentityInterface
3737
* @var string
3838
* @since 100.2.0
3939
*/
40-
protected $_cacheTag = true;
40+
protected $_cacheTag = [self::CACHE_TAG];
4141

4242
/**
4343
* @var StoreManagerInterface

app/code/Magento/Sitemap/Model/Sitemap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class Sitemap extends \Magento\Framework\Model\AbstractModel implements \Magento
159159
* @var string
160160
* @since 100.2.0
161161
*/
162-
protected $_cacheTag = true;
162+
protected $_cacheTag = [Value::CACHE_TAG];
163163

164164
/**
165165
* Item resolver

0 commit comments

Comments
 (0)