Skip to content

Commit

Permalink
14857: prevent cache drop for frontend caches on sitemap generation
Browse files Browse the repository at this point in the history
#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.
  • Loading branch information
david-fuehr committed Jan 31, 2019
1 parent 4f23251 commit b9190b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/Robots/Model/Config/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Value extends ConfigValue implements IdentityInterface
* @var string
* @since 100.2.0
*/
protected $_cacheTag = true;
protected $_cacheTag = [self::CACHE_TAG];

/**
* @var StoreManagerInterface
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Sitemap/Model/Sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class Sitemap extends \Magento\Framework\Model\AbstractModel implements \Magento
* @var string
* @since 100.2.0
*/
protected $_cacheTag = true;
protected $_cacheTag = [Value::CACHE_TAG];

/**
* Item resolver
Expand Down

0 comments on commit b9190b3

Please sign in to comment.