Page MenuHomePhabricator

D18449.id44326.diff
No OneTemporary

D18449.id44326.diff

diff --git a/src/applications/cache/spec/PhabricatorDataCacheSpec.php b/src/applications/cache/spec/PhabricatorDataCacheSpec.php
--- a/src/applications/cache/spec/PhabricatorDataCacheSpec.php
+++ b/src/applications/cache/spec/PhabricatorDataCacheSpec.php
@@ -50,9 +50,15 @@
->setVersion(phpversion('apcu'));
if (ini_get('apc.enabled')) {
+ if (function_exists('apcu_clear_cache')) {
+ $clear_callback = 'apcu_clear_cache';
+ } else {
+ $clear_callback = 'apc_clear_cache';
+ }
+
$this
->setIsEnabled(true)
- ->setClearCacheCallback('apc_clear_cache');
+ ->setClearCacheCallback($clear_callback);
$this->initAPCCommonSpec();
} else {
$this->setIsEnabled(false);

File Metadata

Mime Type
text/plain
Expires
Aug 1 2025, 8:56 AM (6 w, 8 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8335290
Default Alt Text
D18449.id44326.diff (754 B)

Event Timeline