Page MenuHomePhabricator

Improve compatibility of "Config > Cache Status" across APCu versions
ClosedPublic

Authored by epriestley on Aug 8 2018, 6:30 PM.
Tags
None
Referenced Files
F13176958: D19569.diff
Wed, May 8, 6:20 PM
Unknown Object (File)
Mon, May 6, 2:14 AM
Unknown Object (File)
Sat, May 4, 1:28 PM
Unknown Object (File)
Thu, May 2, 1:58 AM
Unknown Object (File)
Wed, May 1, 9:14 PM
Unknown Object (File)
Thu, Apr 25, 5:17 PM
Unknown Object (File)
Mon, Apr 22, 1:24 AM
Unknown Object (File)
Apr 2 2024, 5:19 PM
Subscribers
None

Details

Summary

Ref T13164. See PHI790. Older versions of APCu reported cache keys as "key" from apcu_cache_info(). APC and newer APCu report it as "info".

Check both indexes for compatibility.

Test Plan
  • Locally, with newer APCu, saw no behavioral change.
  • Will double check on admin, which has an older APCu with the "key" behavior.
  • (I hunted this down by dumping apcu_cache_info() on admin to see what was going on.)

Diff Detail

Repository
rP Phabricator
Branch
apc1
Lint
Lint Errors
SeverityLocationCodeMessage
Errorsrc/applications/cache/spec/PhabricatorDataCacheSpec.php:92XHP45PHP Compatibility
Unit
Tests Passed
Build Status
Buildable 20583
Build 27960: Run Core Tests
Build 27959: arc lint + arc unit

Event Timeline

src/applications/cache/spec/PhabricatorDataCacheSpec.php
118–122

Previously, we would send <unknown-key> into getKeyPattern(), which would turn it into <other-namespace> most of the time, making the problem less obvious. I tweaked this so we retain <unknown-key>.

This revision is now accepted and ready to land.Aug 8 2018, 10:04 PM
This revision was automatically updated to reflect the committed changes.