Beispiel #1
0
function wp_cache_init()
{
    global $wp_object_cache, $sasl_memcached_config;
    $wp_object_cache = new WP_Object_Cache();
    if (isset($sasl_memcached_config) && is_array($sasl_memcached_config)) {
        $wp_object_cache->load_from_config($sasl_memcached_config);
    } else {
        $wp_object_cache->load_from_config(array('default' => array(array('host' => '127.0.0.1', 'port' => '11211', 'user' => null, 'pass' => null))));
    }
}