Skip to content

Commit 81f6051

Browse files
committed
MC-5926: Conflict of simultaneous write in Redis cache
- adding cache flush after compile, to prevent compile deleting cache folder in some environments like travis
1 parent 72ee1b6 commit 81f6051

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/code/Magento/Deploy/Model/Filesystem.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ public function regenerateStatic(
145145

146146
// Trigger code generation
147147
$this->compile($output);
148+
149+
// Cache flush will regenerate needed folders structure for compilation and deploy that were deleted previously
150+
$cmd = $this->functionCallPath . 'cache:flush ';
151+
$this->shell->execute($cmd);
152+
148153
// Trigger static assets compilation and deployment
149154
$this->deployStaticContent($output);
150155
}

0 commit comments

Comments
 (0)