Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91416358
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, Nov 10, 21:56
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Nov 12, 21:56 (2 d)
Engine
blob
Format
Raw Data
Handle
22260165
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