Changeset View
Changeset View
Standalone View
Standalone View
src/applications/cache/spec/PhabricatorCacheSpec.php
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | return $this | ||||
->setMessage($message) | ->setMessage($message) | ||||
->addPHPExtension('apc'); | ->addPHPExtension('apc'); | ||||
} | } | ||||
protected function raiseEnableAPCIssue() { | protected function raiseEnableAPCIssue() { | ||||
$summary = pht('Enabling APC/APCu will improve performance.'); | $summary = pht('Enabling APC/APCu will improve performance.'); | ||||
$message = pht( | $message = pht( | ||||
'The APC or APCu PHP extensions are installed, but not enabled in your '. | 'The APC or APCu PHP extensions are installed, but not enabled in your '. | ||||
'PHP configuration. Enabling these extensions will improve Phabricator '. | 'PHP configuration. Enabling these extensions will improve performance. '. | ||||
'performance. Edit the "%s" setting to enable these extensions.', | 'Edit the "%s" setting to enable these extensions.', | ||||
'apc.enabled'); | 'apc.enabled'); | ||||
return $this | return $this | ||||
->newIssue('extension.apc.enabled') | ->newIssue('extension.apc.enabled') | ||||
->setShortName(pht('APC/APCu Disabled')) | ->setShortName(pht('APC/APCu Disabled')) | ||||
->setName(pht('APC/APCu Extensions Not Enabled')) | ->setName(pht('APC/APCu Extensions Not Enabled')) | ||||
->setSummary($summary) | ->setSummary($summary) | ||||
->setMessage($message) | ->setMessage($message) | ||||
Show All 12 Lines |