• ryanto

    (@ryanto)


    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

    https://www.ads-software.com/extend/plugins/w3-total-cache/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ryanto

    (@ryanto)

    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.

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: W3 Total Cache] Does W3 Total Cache Empty an entire memcached server?’ is closed to new replies.