Page MenuHomePhabricator

When "apcu_clear_cache()" exists, prefer it as a cache clear callback over "apc_clear_cache()"
ClosedPublic

Authored by epriestley on Aug 21 2017, 9:11 PM.
Tags
None
Referenced Files
F18953144: D18449.diff
Wed, Nov 12, 7:07 AM
F18775881: D18449.id.diff
Oct 10 2025, 8:32 PM
F18773084: D18449.diff
Oct 9 2025, 6:59 AM
F18757576: D18449.id.diff
Oct 5 2025, 6:14 PM
F18735076: D18449.id44327.diff
Sep 30 2025, 11:26 PM
F18606253: D18449.diff
Sep 13 2025, 9:56 PM
F18602146: D18449.diff
Sep 13 2025, 2:23 PM
F18113055: D18449.id.diff
Aug 12 2025, 11:25 PM
Subscribers
None

Details

Summary

See PHI36. APCu originally had apc_ methods, but at some point dropped these and only provides apcu_ methods.

When the apcu_ method is present, use it. It may not be present for older versions of APCu, so keep the fallback.

Test Plan
  • With modern APCu, clicked "Purge Caches" in Config > Caches.
  • Before: fatal on bad apc_clear_caches call.
  • After: Valid cache clear.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable