Sasl user database
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/
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.