Skip to content
Snippets Groups Projects
Commit a83acb71 authored by Ankur Kaneria's avatar Ankur Kaneria
Browse files

MAGETWO-54205: After Disable/Enable Magento modules via CLI all cache types become disabled

parent 9e4fa33a
Branches
No related merge requests found
......@@ -192,8 +192,7 @@ class GeneratedFiles
$envPath = $this->getEnvPath();
}
if ($this->write->isExist($this->write->getRelativePath($envPath) &&
$this->write->isReadable($this->write->getRelativePath($envPath)))) {
if ($this->write->isReadable($this->write->getRelativePath($envPath))) {
$envData = include $envPath;
if (isset($envData['cache_types'])) {
$cacheStatus = $envData['cache_types'];
......@@ -260,8 +259,7 @@ class GeneratedFiles
return;
}
$envPath = $this->getEnvPath();
if ($this->write->isExist($this->write->getRelativePath($envPath) &&
$this->write->isReadable($this->write->getRelativePath($envPath)))) {
if ($this->write->isReadable($this->write->getRelativePath($envPath))) {
$envData = include $envPath;
foreach ($cacheStatus as $cacheType => $state) {
if (isset($envData['cache_types'][$cacheType])) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment