Skip to content

Commit a83acb7

Browse files
committed
MAGETWO-54205: After Disable/Enable Magento modules via CLI all cache types become disabled
1 parent 9e4fa33 commit a83acb7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/internal/Magento/Framework/Code/GeneratedFiles.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ private function getCacheStatus()
192192
$envPath = $this->getEnvPath();
193193
}
194194

195-
if ($this->write->isExist($this->write->getRelativePath($envPath) &&
196-
$this->write->isReadable($this->write->getRelativePath($envPath)))) {
195+
if ($this->write->isReadable($this->write->getRelativePath($envPath))) {
197196
$envData = include $envPath;
198197
if (isset($envData['cache_types'])) {
199198
$cacheStatus = $envData['cache_types'];
@@ -260,8 +259,7 @@ private function restoreCacheStatus($cacheStatus)
260259
return;
261260
}
262261
$envPath = $this->getEnvPath();
263-
if ($this->write->isExist($this->write->getRelativePath($envPath) &&
264-
$this->write->isReadable($this->write->getRelativePath($envPath)))) {
262+
if ($this->write->isReadable($this->write->getRelativePath($envPath))) {
265263
$envData = include $envPath;
266264
foreach ($cacheStatus as $cacheType => $state) {
267265
if (isset($envData['cache_types'][$cacheType])) {

0 commit comments

Comments
 (0)