I have a problem with Mencached on my multisite server (2 Elgg sites). Enabling memcached on my 2 Elgg sites (with different memcache_namespace_prefix) causes some plugins to be disabled on both sites. Have you ever encountered this type of problem?
Debian 11, memcached 1.6.9, PHP 8.1, Elgg 4.1.3 (2 websites)
I use for one this:
$CONFIG->memcache = true;
$CONFIG->memcache_servers = array ( array('127.0.0.1', 11211), );
$CONFIG->memcache_namespace_prefix = 'exempledeprefix';
and for the other :
$CONFIG->memcache = true;
$CONFIG->memcache_servers = array ( array('127.0.0.1', 11211), );
$CONFIG->memcache_namespace_prefix = 'unautreprefix';
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain

Nikolai Shcherbin - 0 likes
- klermór ⚓@klermor

klermór ⚓ - 0 likes
- Nikolai Shcherbin@rivervanrain

Nikolai Shcherbin - 0 likes
- klermór ⚓@klermor

klermór ⚓ - 0 likes
- Nikolai Shcherbin@rivervanrain

Nikolai Shcherbin - 0 likes
- klermór ⚓@klermor

klermór ⚓ - 0 likes
You must log in to post replies.Try without
$CONFIG->memcache_servers = array ( array('127.0.0.1', 11211), );
or with
$CONFIG->memcache_servers = array ( array('localhost', 11211), );
FYI: Elgg docs
Thank you very much Nikolai.
But the proposed solution does not work ('127.0.0.1' and 'localhost' or only localhost or only 127.0.0.1'). Still this problem.
Ex: in the plugins admin of website A, there are references to plugins only present in site B with a message like: Missing composer.json file for wizard plugin ID (guid 42) .
guid 42 => plugin website A
I keep searching...
Just an idea... Is another cache tool enabled, e.g. OpCache?
Check out /admin/server/
Yes ( /admin/performance )
OPcache : Activé
Memcache : Activé
Redis : Indisponible
This may be a problem.
Try to use only one cache tool.
By the way, OpCache is a good solution.
IMO, there is no need to use Memcache in addition to OpCache.
At least on all our sites everything works very fast with only enabled OpCache.
If you want I can share the OpCache configuration in php.ini
Thx you so much. I will follow your advice.
Thx you for your feedback