mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 06:20:56 +01:00
Fix a bad method call in cache startup.
This commit is contained in:
parent
2a3783cd2c
commit
2f0e2544d3
1 changed files with 2 additions and 2 deletions
|
@ -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']);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue