Skip to content

Commit

Permalink
stage context does not clear tmp directory
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Jul 24, 2017
1 parent 54311c9 commit 02d33b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AppMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public function __construct($name, $context = 'app', $appDir = null)
if (! file_exists($this->logDir) && mkdir($this->logDir) && ! is_writable($this->logDir)) {
throw new NotWritableException($this->logDir);
}
$isDevelop = strpos($context, 'prod') === false;
if ($isDevelop) {
$isCacheable = is_int(strpos($context, 'prod-')) || is_int(strpos($context, 'stage-'));
if (! $isCacheable) {
$this->clearTmpDirectory($this->tmpDir);
}
}
Expand Down

0 comments on commit 02d33b4

Please sign in to comment.