Fix a bad method call in cache startup.
This commit is contained in:
@@ -49,7 +49,7 @@ final class PhabricatorDataCacheSpec extends PhabricatorCacheSpec {
|
|||||||
|
|
||||||
if (ini_get('apc.enabled')) {
|
if (ini_get('apc.enabled')) {
|
||||||
$this->setIsEnabled(true);
|
$this->setIsEnabled(true);
|
||||||
$this->getAPCCommonSpec();
|
$this->initAPCCommonSpec();
|
||||||
} else {
|
} else {
|
||||||
$this->setIsEnabled(false);
|
$this->setIsEnabled(false);
|
||||||
$this->raiseEnableAPCIssue();
|
$this->raiseEnableAPCIssue();
|
||||||
@@ -72,7 +72,7 @@ final class PhabricatorDataCacheSpec extends PhabricatorCacheSpec {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getAPCCommonSpec() {
|
private function initAPCCommonSpec() {
|
||||||
$mem = apc_sma_info();
|
$mem = apc_sma_info();
|
||||||
$this->setTotalMemory($mem['num_seg'] * $mem['seg_size']);
|
$this->setTotalMemory($mem['num_seg'] * $mem['seg_size']);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user