Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #63 from reedy/reedy-staticContent
Browse files Browse the repository at this point in the history
Reuse $staticContent
  • Loading branch information
fredemmott committed Dec 4, 2015
2 parents 9d9c8ca + 1f5e553 commit 5eddc0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/HHVMDaemon.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,17 +194,17 @@ public function start(): void {
}

$bcRepo = $this->options->tempDir.'/hhvm.hhbc';
$staticContent = $this->options->tempDir.'/static.content';
if (file_exists($bcRepo)) {
unlink($bcRepo);
}

$staticContent = $this->options->tempDir.'/static.content';
if ($this->options->filecache) {
if (file_exists($staticContent)) {
unlink($staticContent);
}
$args->add('--file-cache');
$args->add($this->options->tempDir.'/static.content');
$args->add($staticContent);
}

Utils::RunCommand($args);
Expand Down

0 comments on commit 5eddc0b

Please sign in to comment.