Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15266671
D19569.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D19569.diff
View Options
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
@@ -106,8 +106,21 @@
$cache = $info['cache_list'];
$state = array();
foreach ($cache as $item) {
- $info = idx($item, 'info', '<unknown-key>');
- $key = self::getKeyPattern($info);
+ // Some older versions of APCu report the cachekey as "key", while
+ // newer APCu and APC report it as "info". Just check both indexes
+ // for commpatibility. See T13164 for details.
+
+ $info = idx($item, 'info');
+ if ($info === null) {
+ $info = idx($item, 'key');
+ }
+
+ if ($info === null) {
+ $key = '<unknown-key>';
+ } else {
+ $key = self::getKeyPattern($info);
+ }
+
if (empty($state[$key])) {
$state[$key] = array(
'max' => 0,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 27, 6:01 AM (16 h, 57 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7209974
Default Alt Text
D19569.diff (1 KB)
Attached To
Mode
D19569: Improve compatibility of "Config > Cache Status" across APCu versions
Attached
Detach File
Event Timeline
Log In to Comment