Bug #7850

Make sfAPCCache work with php-apcu

Added by Jesús García Crespo over 7 years ago. Updated over 7 years ago.

Status:VerifiedStart date:01/21/2015
Priority:MediumDue date:
Assignee:Dan Gillean% Done:

0%

Category:Performance / scalabilityEstimated time:4.00 hours
Target version:Release 2.1.2
Google Code Legacy ID: Tested version:
Sponsored:No Requires documentation:

Description

APCu (php-apc) was introduced in PHP 5.5 to provide user cache capabilities after the removal of APC. In AtoM, cache_engine (app.yml) defaults to sfAPCCache, which didn't work with early versions of APCu due to API incompatibilities - sfAPCuCache was introduced to solve the problem (see #5470).

First releases of PHP 5.5 used to produce a fatal error when cache_engine was "sfAPCCache," probably because APCu was not providing the function apc_store() (see #L34), but it seems like it was added in newer releases, including the version bundled in Ubuntu 14.04.

So now users running PHP 5.5 but not using sfAPCuCache are experiencing cache invalidation issues, e.g. updating settings/list doesn't refresh the corresponding keys. But it works when using sfAPCuCache.

This problem needs to be revisited, hopefully sfAPCCache can be updated to work for both apc and apcu while we keep sfAPCuCAche around just for compatibility issues (a subcless without overriding members of sfAPCCache maybe?).


Related issues

Related to Access to Memory (AtoM) - Bug #5470: Changing visibility of site description in Admin > Settin... Verified 08/14/2013
Related to Access to Memory (AtoM) - Bug #10064: Physical Storage still visible after unchecking from Visi... Verified 06/23/2016
Duplicated by Access to Memory (AtoM) - Bug #7493: Settings cache invalidation not working Duplicate 11/07/2014

History

#1 Updated by Jesús García Crespo over 7 years ago

  • Related to Bug #5470: Changing visibility of site description in Admin > Settings fails to change page after save added

#2 Updated by Dan Gillean over 7 years ago

  • Subject changed from Make sfAPCCache works with php-apcu to Make sfAPCCache work with php-apcu
  • Description updated (diff)

(minor title and description edits for clarity)

#3 Updated by Jesús García Crespo over 7 years ago

  • Status changed from New to QA/Review
  • Assignee changed from Jesús García Crespo to Dan Gillean

Make sure that e.g. logo is shown/hidden when the settings checbox toggle is changed.

#4 Updated by Dan Gillean over 7 years ago

  • Status changed from QA/Review to Verified

Settings seem to be responding as expected. Marking this verified.

#9 Updated by Jesús García Crespo about 7 years ago

  • Duplicated by Bug #7493: Settings cache invalidation not working added

#10 Updated by José Raddaoui Marín almost 6 years ago

  • Related to Bug #10064: Physical Storage still visible after unchecking from Visible Elements added

Also available in: Atom PDF