WordPress.org

Support

Support » Plugins and Hacks » Will wp-super-cache use Alternative PHP Cache (APC)?

Will wp-super-cache use Alternative PHP Cache (APC)?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Yes, APC as object cache can work with WP Super Cache. I’ve done just that on a few production servers. The author (Donncha) may have his own reasons not to mention APC in that list. One reason could be that its development process is almost stalled since PHP 5.5 and may not be reviewed in the near future, due to ever increasing number of complex bugs.

    RonStrilaeff

    @ronstrilaeff

    hmmm, I saw the mention of issues similar to “complex bugs” on the media temple forum (my host). The installation was difficult and introduced new errors when used on an account with multiple sites.

    I do not need unstable system sofware, so I think I will put that off for now.

    Thanks, Ron

    Most of the servers where I installed APC are unmanaged LAMP or LEMP servers on Ubuntu 12.04, with PHP-FPM. This (Ubuntu 12.04) is probably the most stable system / server for APC at the moment, in my experience.

    @pothi Kalimuthu – intrigued by your mention of

    Yes, APC as object cache can work with WP Super Cache. I’ve done just that on a few production servers.

    Could you share how you set this up? Thanks 🙂

    Yes, I could. 🙂

    Once the server is ready with PHP-FPM, APC, etc., please put this object-cache.php file in the site’s wp-content directory. This can work independent of WP Super Cache plugin, though. It does not even need the following line in wp-config.php file…

    define('WP_CACHE', true);

    Finally, you may remove all the existing transients, so that the new transients are stored in APC.

    I hope that helps.

    Ah, right. Mark’s APC Object Cache Backend plugin. I have tried that before (indeed in combo with Super Cache) on a multisite setup but subsequently had clients reporting options not being saved. Plus I ended up with such an extremely high fragmentation of the cache that I decided to remove it again… See http://wordpress.org/support/topic/set_transient-not-working-with-apc-object-cache-backend and http://wordpress.org/support/topic/plugin-apc-object-cache-backend-after-installation-transients-stopped-working and http://wordpress.org/support/topic/plugin-apc-object-cache-backend-apc-user-cache-entries-and-wp-super-cache

    Finally, you may remove all the existing transients, so that the new transients are stored in APC.

    This I did not do. Could that be the cause of changing options not taking?

    It could probably be.

    Fragmentation is a real concern, especially on a low end VPS.

    OK, thanks Pothi, for sharing your insight 🙂 I’ll probably have to upgrade my VPS before trying this again 😉

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Will wp-super-cache use Alternative PHP Cache (APC)?’ is closed to new replies.