Skip to content

Commit b9190b3

Browse files
committed
14857: prevent cache drop for frontend caches on sitemap generation
#14857 Introduces a (dummy) cache tag for frontend in sitemap and robots generation. This prevents the default and page_cache to be dropped completely. The cache tag for full_page cache is not modified.
1 parent 4f23251 commit b9190b3

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)