-
- 1 Posts
I see that the new version of MODX supports memcached server. How exactly do we do this? is there a config file that we need to specify the ip, etc?
-
- 697 Posts
This is quite an old post. Is this info still upto date.
I'm working with memcache and did the following:
cache_handler = "xPDOMemCache"
resourceCache_memcached_server = "localhost:11211"
Is this all I need to do to cache resourcesd to memcache?
-
- 697 Posts
Im getting this error:
Could not load class: xPDOMemCache from xpdomemcache.
Obviously the cache is not getting written to memcache!
-
- 697 Posts
Ok got a little further, did not read the post fully!
It appears our server does not have memcache, but appears to have "memcached" extension.
Is there a way for MODx to work with this extension based on the setting I added above?
The xPDO implementation includes support for the memcache PHP extension, not the memcached extension. But you should be able to author a version using the memcached API by following the existing memcache implementation.
-
- 697 Posts
Hi there,
I did.
Changes were very easy. I just commented out the 4th param of the get/set, and added the d!!!!!
They are quite similar!
J
-
- 16 Posts
I'm using the latest version of MODX revolution 2.2.0pl and I'd like to implement memcache.
I've tried adding the following system settings however when I look at my memcache stats I don't see any connection being made.
These are the settings I made:
cache_handler = "xPDOMemCache"
cache_resource_key = "resourceCache"
resourceCache_memcached_server = "localhost:11211"
Do I need to edit any files or anything? I've already tested that memcache works via a separate secript.