WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Will wp-super-cache use Alternative PHP Cache (APC)? (9 posts)

  1. RonStrilaeff
    Member
    Posted 10 months ago #

    I see where it says this:
    Advanced users only: Install an object cache. Choose from Memcached, XCache, eAcccelerator and others.

    Any suggestions on APC? (my server supports that)

    http://wordpress.org/plugins/wp-super-cache/

  2. Pothi
    Member
    Posted 10 months ago #

    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.

  3. RonStrilaeff
    Member
    Posted 10 months ago #

    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

  4. Pothi
    Member
    Posted 10 months ago #

    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.

  5. RavanH
    Member
    Posted 10 months ago #

    @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 :)

  6. Pothi
    Member
    Posted 10 months ago #

    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.

  7. RavanH
    Member
    Posted 10 months ago #

    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?

  8. Pothi
    Member
    Posted 10 months ago #

    It could probably be.

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

  9. RavanH
    Member
    Posted 10 months ago #

    OK, thanks Pothi, for sharing your insight :) I'll probably have to upgrade my VPS before trying this again ;)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags