Support » Plugin: APCu Object Cache Backend » [Feature Request] Graceful Termination of APCu Plugin

  • Resolved saptree


    Firstly, thanks for the plugin!

    Recently after upgrading PHP5, I found that my PHP5-APCu extension failed to load. The error in php.log is:

    PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20121212/’

    So I removed the extension, and restarted PHP5. But, my WordPress installation is still returning HTTP code 503. No error whatsoever in web server log files.

    After scratching my head for a couple minutes more, I remember this APCu plugin. So I renamed object-cache.php and WordPress is working again.

    So I like to make this feature request for future update:

    When PHP5-APCu extension is not found in the system, this plugin should gracefully terminate itself instead of bringing down the whole WordPress. If that is not possible, at least give some useful error message.

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author Pierre Schmitz


    If APCu is not available you should get a 503 response with the following message: “APCu is not configured correctly. Please refer to for instructions.”

    Unfortunately it is not straight forward to implement a fallback when APCu module is not loaded. The cache.php is not loaded when an object-cache.php file is available.

    EDIT: I think it actually can be done (in a dirty way) but I am not sure it should be done. Silently falling back to no caching when APCu does not work will hide configuration issues.

Viewing 1 replies (of 1 total)
  • The topic ‘[Feature Request] Graceful Termination of APCu Plugin’ is closed to new replies.