[Plugin: WP Super Cache] Unclear on wp_cache_get_cookies_values()
-
Hi,
I love this plugin, but I’m not exactly clear on how to use the wp_cache_get_cookies_values hook.
function wp_cache_get_cookies_values() {
$string = '';
while ($key = key($_COOKIE)) {
if (preg_match("/^wp-postpass|^wordpress|^comment_author_/", $key)) {
$string .= $_COOKIE[$key] . ",";
}
next($_COOKIE);
}
reset($_COOKIE);
if( $string != '' )
return $string;$string = do_cacheaction( 'wp_cache_get_cookies_values', $string );
return $string;
}Maybe I don’t understand how this is supposed to work, but I read this to mean that, if any of the pre-defined cookies have values, the hook isn’t even invoked (since if $string != ” it returns $string before getting to do_cacheaction()). I need to modify the key based on some other cookie values. How do I do that?
Sorry if I’m being dense. I’m still something of a WP newbie.
Thanks for your help.
- The topic ‘[Plugin: WP Super Cache] Unclear on wp_cache_get_cookies_values()’ is closed to new replies.