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
F15450436: D19569.id46781.diff
Fri, Mar 28, 3:42 PM
F15448247: D19569.id46782.diff
Fri, Mar 28, 3:41 AM
F15444066: D19569.id.diff
Thu, Mar 27, 7:39 AM
F15442350: D19569.diff
Wed, Mar 26, 10:55 PM
F15435342: D19569.diff
Tue, Mar 25, 7:51 AM
F15411090: D19569.diff
Wed, Mar 19, 8:49 AM
F15334129: D19569.diff
Sat, Mar 8, 6:55 AM
Unknown Object (File)
Feb 26 2025, 7:05 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.