diff --git a/src/AppMeta.php b/src/AppMeta.php index 7a08ced..9b38599 100644 --- a/src/AppMeta.php +++ b/src/AppMeta.php @@ -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); } }