lsmcd icon indicating copy to clipboard operation
lsmcd copied to clipboard

Sasl user database

Open binooetomo opened this issue 7 years ago • 1 comments

Dear All.

I Learn to use LSMCD as replacement of memcached, to speed up our WP Hosting.

I think there is one problem about it. I'm writing a simple python script that will trigered by WHM event. This script will create one new WP site for newly created account, including 'installing and configure' LSCache Wordpress Plugin. Since I use LSMCD with SASL, this script also need to add user-password to LSMCD SASLdb for that user.

SASLdb is just a regular text file, Imagine if I have more than 1 account created by WHM ..... there will be a File-Locking problem.

So, Is there any way for me to replace SASL database backend?

Sincerely -bino-

Actualy, I post the same question at https://www.litespeedtech.com/support/forum/threads/lsmcd-sasl-database-backend.16940/

binooetomo avatar Oct 12 '18 00:10 binooetomo

there will be a File-Locking problem

This should be quite an easy locking scenario to deal with. Just lock the file with an exclusive flock, add, your user line, and unlock the file, or even just write your full user database to a new file, then move it over the previous file.

catphish avatar Oct 22 '19 13:10 catphish