Skip to content

Commit

Permalink
ENGCOM-4478: [Backport] 20818 - prevent cache drop for frontend cache…
Browse files Browse the repository at this point in the history
…s on sitemap generation #21698
  • Loading branch information
sidolov authored Mar 18, 2019
2 parents d314910 + 903ede7 commit 6167719
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/code/Magento/Robots/Model/Config/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Robots\Model\Config;

use Magento\Framework\App\Cache\TypeListInterface;
Expand Down Expand Up @@ -30,12 +31,11 @@ class Value extends ConfigValue implements IdentityInterface
const CACHE_TAG = 'robots';

/**
* Model cache tag for clear cache in after save and after delete
* @inheritdoc
*
* @var string
* @since 100.2.0
*/
protected $_cacheTag = true;
protected $_cacheTag = [self::CACHE_TAG];

/**
* @var StoreResolver
Expand Down
6 changes: 3 additions & 3 deletions app/code/Magento/Sitemap/Model/Sitemap.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
Expand Down Expand Up @@ -155,12 +156,11 @@ class Sitemap extends \Magento\Framework\Model\AbstractModel implements \Magento
protected $dateTime;

/**
* Model cache tag for clear cache in after save and after delete
* @inheritdoc
*
* @var string
* @since 100.2.0
*/
protected $_cacheTag = true;
protected $_cacheTag = [Value::CACHE_TAG];

/**
* Last mode min timestamp value
Expand Down

0 comments on commit 6167719

Please sign in to comment.