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
Unknown Object (File)
Fri, Apr 19, 6:44 PM
Unknown Object (File)
Thu, Apr 11, 9:34 AM
Unknown Object (File)
Thu, Apr 11, 12:47 AM
Unknown Object (File)
Tue, Apr 2, 2:10 PM
Unknown Object (File)
Mar 23 2024, 12:39 PM
Unknown Object (File)
Jan 24 2024, 8:05 PM
Unknown Object (File)
Jan 4 2024, 6:34 AM
Unknown Object (File)
Dec 19 2023, 9:48 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