-
Notifications
You must be signed in to change notification settings - Fork 16
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
Support Memcached (not Memcache) #19
Comments
So, the very simple and nondescript notice you see in your screenshot, is my way of saying "This interface will not work without Memcache installed, but Memcached will continue to work OK." |
I think there might be some conflation between the |
Okay. Cleaned some things up, but there is more to do. Not today, unfortunately, but I have in my mind what needs to happen:
|
Related: #6. |
Subscribing to this, since the official |
General update: I've made some nominal changes surrounding this to try and support additional backends (Redis, mostly) but nothing substantial. I'm reluctant to litter the codebase with caveats and constants to guide the engine/daemon relationships, but it may be necessary eventually. (WP Redis has a bunch, and I assume they're useful there.) |
Related: #25. |
Subscribing to this. Trying to make it work with Memcached and exploring the code right now. |
I mean the plugin supports public $engine_class_name = 'Memcache'; should change to public $engine_class_name = 'Memcached'; The class, there you use is Memcached
// Set daemon flags
if ( class_exists( $this->daemon_class_name ) ) {
$this->success_code = Memcached::RES_SUCCESS;
$this->preserve_order = Memcached::GET_PRESERVE_ORDER;
} The plugin don't supports Memcache, there is really old - I mean 2013 last support change. I had tested this change in one environment and it works without problems. If you need an pull request, please ping me. |
Currently, if the Memcache extension is not installed (but the Memcached extension is), there is a fatal error in
includes/class-object-cache.php
.If I manually change
WP_Spider_Cache_Object::$engine_class_name
to'Memcached'
, there is no fatal error any more, but in the back-end I get a notice that I should install the Memache extension.First of all, I don't think anyone will ever see that notice because of the fatal error. Second, mixing up Memcache and Memcached throughout the code base is confusing.
Both are PHP extensions to access a Memcached server. Why are their names used interchangeably in this plugin when clearly the Memcache extension is required?
Sorry if I'm missing something, haven't had my coffee yet :-)
The text was updated successfully, but these errors were encountered: