Hi,
I have Memcache already installed on the server, but I have no idea how it can be linked to Matrix.
Any help or tips much appreciated.
Thanks,
Tuguldur
Hi,
I have Memcache already installed on the server, but I have no idea how it can be linked to Matrix.
Any help or tips much appreciated.
Thanks,
Tuguldur
Check the online manual.
https://matrix.squiz.net/manuals/server-administrator/chapters/memcache-configuration
Hi mfong,
I should of have mentioned that i always follow the manual to the best of my abilities and still found it difficult to setup.
I don’t understand how to setup / configure the host to listen for matrix.
Any pointers would be very helpful.
Thanks,
Tuguldur
On the Memcache end, it should really just be a case of installing and starting the memcached service, and making sure you have the PECL “memcache” module (not the PECL “memcached” module, which does basically the same thing but is completely different) installed and enabled.
Assuming you’ve done that, then there are really two main steps to follow in Matrix:
data/private/conf/memcache.inc
.data/private/conf/main.inc
, caching is enabled from the Cache Manager asset in the Matrix admin interface, and Deja Vu is enabled by running a command-line PHP script.It’s worth noting, though, that Memcache is only used for sessions in most cases nowadays - caching and Deja Vu are typically stored in Redis since Matrix started supporting it, and locking is often just left in the database unless there’s a compelling reason not to.
What are you trying to do with Memcache, exactly?
Thanks for the info.
I installed Perl memcache and checked all the settings. I’m still insure wether the memcache.inc host file should be set to that of the localhost, the listening IP or the IP address.
I’m just messing around with the system to get more understanding.
Thank you.
I’m not sure what you mean by “Perl memcache.” You need memcached running and the PECL Memcache extension for PHP installed.
The “host” and “port” parameters in memcache.inc need to be set to the IP address and TCP port that your memcached service is listening on.
I meant pecl memcache. Changing the host to the server IP did the trick.
Many thanks for the help.