Changeset View
Changeset View
Standalone View
Standalone View
src/applications/cache/spec/PhabricatorOpcodeCacheSpec.php
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | if (ini_get('apc.enabled')) { | ||||
->addPhabricatorConfig('phabricator.developer-mode'); | ->addPhabricatorConfig('phabricator.developer-mode'); | ||||
} else if (!$is_stat_enabled && $is_dev) { | } else if (!$is_stat_enabled && $is_dev) { | ||||
$summary = pht( | $summary = pht( | ||||
'"%s" is currently disabled, but should probably be enabled.', | '"%s" is currently disabled, but should probably be enabled.', | ||||
'apc.stat'); | 'apc.stat'); | ||||
$message = pht( | $message = pht( | ||||
'The "%s" setting is currently disabled in your PHP configuration, '. | 'The "%s" setting is currently disabled in your PHP configuration, '. | ||||
'but Phabricator is running in development mode. This option should '. | 'but this software is running in development mode. This option '. | ||||
'normally be enabled in development so you do not need to restart '. | 'should normally be enabled in development so you do not need to '. | ||||
'anything after making changes to the code.', | 'restart anything after making changes to the code.', | ||||
'apc.stat'); | 'apc.stat'); | ||||
$this | $this | ||||
->newIssue('extension.apc.stat-disabled') | ->newIssue('extension.apc.stat-disabled') | ||||
->setShortName(pht('"%s" Disabled', 'apc.stat')) | ->setShortName(pht('"%s" Disabled', 'apc.stat')) | ||||
->setName(pht('"%s" Disabled in Development', 'apc.stat')) | ->setName(pht('"%s" Disabled in Development', 'apc.stat')) | ||||
->setSummary($summary) | ->setSummary($summary) | ||||
->setMessage($message) | ->setMessage($message) | ||||
▲ Show 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | if (ini_get('opcache.enable')) { | ||||
} | } | ||||
} else { | } else { | ||||
$this->setIsEnabled(false); | $this->setIsEnabled(false); | ||||
$summary = pht('Enabling OPcache will dramatically improve performance.'); | $summary = pht('Enabling OPcache will dramatically improve performance.'); | ||||
$message = pht( | $message = pht( | ||||
'The PHP "Zend OPcache" extension is installed, but not enabled in '. | 'The PHP "Zend OPcache" extension is installed, but not enabled in '. | ||||
'your PHP configuration. Enabling it will dramatically improve '. | 'your PHP configuration. Enabling it will dramatically improve '. | ||||
'Phabricator performance. Edit the "%s" setting to '. | 'performance. Edit the "%s" setting to enable the extension.', | ||||
'enable the extension.', | |||||
'opcache.enable'); | 'opcache.enable'); | ||||
$this->newIssue('extension.opcache.enable') | $this->newIssue('extension.opcache.enable') | ||||
->setShortName(pht('OPcache Disabled')) | ->setShortName(pht('OPcache Disabled')) | ||||
->setName(pht('Zend OPcache Not Enabled')) | ->setName(pht('Zend OPcache Not Enabled')) | ||||
->setSummary($summary) | ->setSummary($summary) | ||||
->setMessage($message) | ->setMessage($message) | ||||
->addPHPConfig('opcache.enable'); | ->addPHPConfig('opcache.enable'); | ||||
Show All 20 Lines |