Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter brohism

    (@brohism)

    Any tips here? Where can I find the memcached key?

    Ka Yue

    (@kayue)

    $key = ‘your cache key’;

    if(function_exists(‘w3_instance’)) {
    $w3_key = w3_instance(‘W3_ObjectCache’)->_get_cache()->get_item_key($key);
    }

    Ka Yue

    (@kayue)

    Sorry it should be:

    if(class_exists('W3_ObjectCache')) {
            $w3_key = W3_ObjectCache::instance()->_get_cache_key($key, $group);
    }

    You need to know the $key and $group first, can be found in debug mode.

    Thread Starter brohism

    (@brohism)

    Does $key stay constant for a given site once W3TC is installed? In other words, can I hard-code it into my Nginx site config once I find its value?

    Ka Yue

    (@kayue)

    key and group should be constant

    The final key would look like something like this:

    w3tc_key_domain.com_2_object_fe2395a32fa21f59d9c1cc21442438ea_2

    Format:

    w3tc_key_<host>_<blog id>_<module>_<compiled key + group>_<blog id>

    I suggest you use APC first and then use apc.php to view all the keys used by w3tc.

    Thread Starter brohism

    (@brohism)

    Did you get this working in the end? I have recently configured Nginx with PHP5-FPM running WordPress and W3 Total cache hooking to memcached. I was thinking the same shortcut could squeeze some extra performance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘W3TC Memcached & Nginx’ is closed to new replies.