WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Does W3 Total Cache Empty an entire memcached server? (3 posts)

  1. ryanto
    Member
    Posted 3 years ago #

    Hello,

    I installed W3 Total Cache a few weeks ago and am very impressed with it. I am using the memcached as a backend cache for Page Cache, Minify, Database Cache, and Object Cache. It appears that W3 is completely empty my memcached server every few hours.

    Is there anyway to disable this? A number of different blogs and applications are using this memcached server and W3 Total Cache is deleting their keys. I would like to avoid running a second instance of memcached just to support W3 Total Cache.

    Thanks,
    Ryan

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. ryanto
    Member
    Posted 3 years ago #

    It looks like the object cache plugin is completely emptying the cache over a number of events.

    From File: w3-total-cache\lib\W3\Plugin\ObjectCache.php

    The events include:

    publish_phone
    publish_post
    edit_post
    delete_post
    comment_post
    edit_comment
    delete_comment
    wp_set_comment_status
    trackback_post
    pingback_post
    switch_theme
    edit_user_profile_update

    This makes the object cache pretty much useless (and harmful) if it is going to emepty an entire memcached server when one these events happen.

  3. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    That's the nature of how APC works. Adding a lookup table to find only the entries to remove is slow. The same for memcached, use multiple memcached instances for different cache types. There are workarounds to make the lifetime of objects greater.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic