Hi, I installed and successfully configured pas.plugins.ldap (pasldap) on a plone 5.2 running on python 3.7.3. On the documentation it is recommended to use memcached to speed up ldap queries, so I installed the system version of memcached (on Debian 10) with apt
and I did not change the default configuration, so memcached runs with:
memcached -m 64 -p 11211 -u memcache -l 127.0.0.1 ...
After that I enabled caching on the pasldap configuration page inside plone controlpanel and set memcached server ip:port to 127.0.0.1:11211
.
After this on every request i make (e.g. add a Folder), plone does three ldap queries with the filter (cn=*)
which basically means it fetch all the ldap users (in my case 10-12K). The query takes several seconds and as I said it is repeated three times. So the entire request to get the folder creation form takes about 30 seconds.
I expected that only the first query hit the ldap sever and that the subsequent ones would have been cached by memcached, but it seems not to be the case.
The issue was reported a couple of years ago:
- https://github.com/collective/pas.plugins.ldap/issues/30
- https://github.com/collective/pas.plugins.ldap/issues/4
but this is marked as solved with version 1.0b1 of node.ext.ldap (https://github.com/collective/pas.plugins.ldap/issues/4#issuecomment-168368766)
What am I doing wrong? Do I miss some memcached or pasldap configuration?
Davide