Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F76965475
PhabricatorSetupCheckAPC.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Aug 11, 11:34
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Aug 13, 11:34 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19804577
Attached To
rPH Phabricator
PhabricatorSetupCheckAPC.php
View Options
<?php
final
class
PhabricatorSetupCheckAPC
extends
PhabricatorSetupCheck
{
protected
function
executeChecks
()
{
if
(!
extension_loaded
(
'apc'
))
{
$message
=
pht
(
"Installing the PHP extension 'APC' (Alternative PHP Cache) will "
.
"dramatically improve performance."
);
$this
->
newIssue
(
'extension.apc'
)
->
setShortName
(
pht
(
'APC'
))
->
setName
(
pht
(
"PHP Extension 'APC' Not Installed"
))
->
setMessage
(
$message
)
->
addPHPExtension
(
'apc'
);
return
;
}
if
(!
ini_get
(
'apc.enabled'
))
{
$summary
=
pht
(
"Enabling APC will dramatically improve performance."
);
$message
=
pht
(
"The PHP extension 'APC' is installed, but not enabled in your PHP "
.
"configuration. Enabling it will dramatically improve Phabricator "
.
"performance. Edit the 'apc.enabled' setting to enable the extension."
);
$this
->
newIssue
(
'extension.apc.enabled'
)
->
setShortName
(
pht
(
'APC Disabled'
))
->
setName
(
pht
(
"PHP Extension 'APC' Not Enabled"
))
->
setSummary
(
$summary
)
->
setMessage
(
$message
)
->
addPHPConfig
(
'apc.enabled'
);
}
}
}
Event Timeline
Log In to Comment