Skip to content

Commit 6375250

Browse files
author
Dale Sikkema
committed
MAGETWO-44798: [Varnish4] Page cache is not disabled if Varnish is used
- fix static tests
1 parent ff047a9 commit 6375250

File tree

1 file changed

+7
-1
lines changed
  • app/code/Magento/PageCache/Model/Cache

1 file changed

+7
-1
lines changed

app/code/Magento/PageCache/Model/Cache/Type.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,18 @@ class Type extends \Magento\Framework\Cache\Frontend\Decorator\TagScope
3131
public function __construct(
3232
\Magento\Framework\App\Cache\Type\FrontendPool $cacheFrontendPool,
3333
\Magento\Framework\Event\ManagerInterface $eventManager
34-
3534
) {
3635
parent::__construct($cacheFrontendPool->get(self::TYPE_IDENTIFIER), self::CACHE_TAG);
3736
$this->eventManager = $eventManager;
3837
}
3938

39+
/**
40+
* {@inheritdoc}
41+
*
42+
* @param string $mode
43+
* @param array $tags
44+
* @return bool
45+
*/
4046
public function clean($mode = \Zend_Cache::CLEANING_MODE_ALL, array $tags = [])
4147
{
4248
$this->eventManager->dispatch('adminhtml_cache_refresh_type');

0 commit comments

Comments
 (0)