HomePhabricator

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

Description

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

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.

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D18449

Details

Provenance
epriestleyAuthored on Aug 21 2017, 9:04 PM
epriestleyPushed on Aug 21 2017, 10:32 PM
Reviewer
chad
Differential Revision
D18449: When "apcu_clear_cache()" exists, prefer it as a cache clear callback over "apc_clear_cache()"
Parents
rPe40c002a6dfe: Add a basic view count to Phame
Branches
Unknown
Tags
Unknown
Build Status
Buildable 18117
Build 24347: Run Core Tests