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
Unknown Object (File)
Fri, Jun 6, 2:49 AM
Unknown Object (File)
Wed, Jun 4, 6:31 AM
Unknown Object (File)
Tue, Jun 3, 9:04 PM
Unknown Object (File)
May 10 2025, 7:22 AM
Unknown Object (File)
Apr 29 2025, 2:34 AM
Unknown Object (File)
Apr 28 2025, 6:33 AM
Unknown Object (File)
Apr 27 2025, 8:25 PM
Unknown Object (File)
Apr 25 2025, 12:23 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.