Any tips here? Where can I find the memcached key?
$key = ‘your cache key’;
if(function_exists(‘w3_instance’)) {
$w3_key = w3_instance(‘W3_ObjectCache’)->_get_cache()->get_item_key($key);
}
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.
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?
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.
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.