Support » Plugin: W3 Total Cache » W3TC memcached and sock

  • Hi all,

    I am trying to use W3TC with memcached, but with socket support. I edited the

    /wp-content/plugins/w3-total-cache/lib/W3/Cache/Memchaced.php

    and replaced

    $this->_memcache->addServer(trim($ip), (integer) trim($port), $persistant);

    with

    $ip = trim($ip);
                    $port = (integer) trim($port);
                    if( $ip[0] === '/' ) {
                        $port = 0;
                        $ip = 'unix://' . $ip;
                    }
                    $this->_memcache->addServer($ip, $port, $persistant);

    And I have the memcached server up.

    This used to do the trick in the older version, but now, when I test it, I get a Test Failed

    Any help would be appreciated

    http://wordpress.org/extend/plugins/w3-total-cache/

  • The topic ‘W3TC memcached and sock’ is closed to new replies.