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

Commit

Permalink
Enable filecache by default
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Jun 4, 2015
1 parent 0af3fff commit ca832c5
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions base/PerfOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function __construct(Vector<string> $argv) {

'no-proxygen',
'no-repo-auth',
'file-cache',
'no-file-cache',
'pcre-cache:',
'pcre-cache-expire:',
'pcre-cache-size:',
Expand Down Expand Up @@ -236,7 +236,7 @@ public function __construct(Vector<string> $argv) {
$this->applyPatches = $this->getBool('apply-patches');

$this->precompile = !$this->getBool('no-repo-auth');
$this->filecache = $this->getBool('file-cache');
$this->filecache = $this->precompile && !$this->getBool('no-file-cache');
$this->pcreCache = $this->getNullableString('pcre-cache');
$this->pcreSize = $this->getNullableInt('pcre-cache-size');
$this->pcreExpire = $this->getNullableInt('pcre-cache-expire');
Expand Down Expand Up @@ -313,6 +313,7 @@ public function validate() {
if ($this->php5) {
$this->precompile = false;
$this->proxygen = false;
$this->filecache = false;
}
if ($this->notBenchmarkingArgs && !$this->notBenchmarking) {
$message = sprintf(
Expand Down Expand Up @@ -365,13 +366,6 @@ public function validate() {
);
}

if ($this->filecache) {
invariant(
$this->precompile,
'The file cache must be used with --repo-auth'
);
}

if ($this->pcreCache !== null || $this->pcreSize || $this->pcreExpire) {
invariant(
$this->hhvm !== null,
Expand Down

0 comments on commit ca832c5

Please sign in to comment.