• I’m trying to get W3 to work in an IIS environment and so far things are pretty good. One problem, though, is that I cannot get the pages to cache using memcached. DB queries work fine.

    I’ve tried turning off gzip/deflate for pages, but they still don’t work. What happens is as soon as I turn on Pages=memcached, the first request for the page from the memcached server returns “END” but then it turns around and sends that as the content for the page. It never sends (sets) the keyed data properly to memcached.

    It’s like the caching engine doesn’t realize that there is no memcached data for the page key it is requesting. I’ve sniffed the conversation between memcached and the IIS server … it looks like this (+ = commands sent to memcached):

    (first a quick test is run)
    +set test_a28e075766287f2147e3876937517483 0 60 37
    +test_a28e075766287f2147e3876937517483
    STORED
    +get test_a28e075766287f2147e3876937517483
    VALUE test_a28e075766287f2147e3876937517483 0 37
    test_a28e075766287f2147e3876937517483
    END
    
    (then real page requests)
    +get w3tc_ccb06f5646823b1934928c02bf2fd1fe_page_641c51297da6ce49f34910c2c6d0fbf0
    END
    +get w3tc_ccb06f5646823b1934928c02bf2fd1fe_page_87407f7b5385cb83b3070a04b6a4f634
    END

    Note that there never is a “set” command issued for any pages.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter tsimmons

    (@tsimmons)

    BTW, caching pages using basic file system works fine.

    Have you installed the memcache extension for PHP? Have you tried using APC extension for PHP, you will get more concurrency using an opcode cache if you have a standalone server.

    Thread Starter tsimmons

    (@tsimmons)

    I have not installed the memcached extension for PHP and wasn’t aware it was needed. I see you are using a memcached library by Ryan T. Dean … doesn’t it handle all the communication with the memcached server?

    The reason I ask is because if I point the DB caching to use memcached, it works fine. It’s just when I point pages to use memcached, it doesn’t.

    I see you are using a memcached library by Ryan T. Dean … doesn’t it handle all the communication with the memcached server?

    Yes, but the performance compared to having the .dll (in your case) installed is absolutely night and day. The library is only included for completeness, it’s not a practical solution for production in any cases I’ve seen.

    The reason I ask is because if I point the DB caching to use memcached, it works fine. It’s just when I point pages to use memcached, it doesn’t.

    For a situation like this I can’t speculate why that is as the caching engines reuse some of the same core logic. I’d have to get in there and see what’s happening.

    And why are you not using wincache? See the benchmarks its crazy fast!!! and officially support by both MS AND PHP devs.

    I’m just sad that W3TC does not have it listed but only apc,xcache etc.

    wincahce can do ALL the caching that xcache does and ALSo that memcached does.

    I hope W3TC dev will consider wincache support. If interested I have the emails for both lead devs and they will welcome adoption.

    WinCache is nice, but it’s only good for single server deploys. It will be supported in an upcoming release.

    Thanks for the update! Looking forward to this.

    Wincache supports multiple servers using Web Farm Framework 2.0, also free.

    But that’s in beta no?

    Yes, hopefully its as stable as wincache was during beta the same guys who developed wincache got moved over to that project.

    Ok, thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: W3 Total Cache] Pages and memcached not seeming to work’ is closed to new replies.