WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
W3TC + memcached and sock (1 post)

  1. SIlvaCosta
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic