Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Memcached SASL #31

Open
BrookeDot opened this issue Dec 12, 2019 · 0 comments
Open

Add support for Memcached SASL #31

BrookeDot opened this issue Dec 12, 2019 · 0 comments

Comments

@BrookeDot
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant