Skip to content

Add support for Memcached SASL #31

@BrookeDot

Description

@BrookeDot

My Memcached instance is protected with SASL and requires a username and password to access. I connect to my Memcached server outside of WordPress I pass a few extra options to the class to authentication the connection. Typically that connection would look something like this:

$memcache = new Memcached();
$memcache->setOption( Memcached::OPT_BINARY_PROTOCOL, true );
$memcache->setSaslAuthData( "memcached_user", "hunter2" );
$memcache->addServer( '127.0.0.1', 11211 ) or die ("Could not connect");

When I started looking to use Memcache for WordPress there was very little discussion around SASL usage with existing drop-in options. It would be great to see these options added to WP Spider Cache allowing the connection to be made.

When I attempted to install WP Spider Cache I got a 504 timeout in the browser due to the server connection failing authentication to Memcached().

https://twitter.com/BandonRandon/status/1205030715563233281

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions