lscache configuration

#1
Hi! I installed OLS with WordPress in Debian 12. I added and activated the Litespeed plugin in WordPress cirrectly. Created a vhost in OLS. I read the docs about lscache. If I'm not wrong, it is possible to only activate the cache module in server configuration level, without any parameters. Then, in the vhost configuration I activate the cache module and add the parameters:

enableCache 1
checkPublicCache 1
storagePath $VH_ROOT/lscache

Then restart OLS. That should do the magic, right? I run a curl -I to my site and do not get any hit nor miss.

Now, if I change, under the vhost configuration, the storagePath to $SERVER_ROOT/cachedata boom! It now works.

I check the ownership and permissions of both directories, the one in $VH_ROOT/lscache and in $SERVER_ROOT/cachedata and are identical.


I do not want to use $SERVER_ROOT/cachedata, I need to cache things under every virtual host web home directory.

What is my mistake?
 
#3
Hi! Yes. The directory is automatically created with the permission and ownership correctly set. I then run curl and do not see any hit nor miss. I change the storagePath back to the cachedata and it works.

Is it correct to leave the parameters in blank in server configuration level? I just activated it but no parameters. I then go to the virtual host and there I add the parameters, among them the storagePath. If possible, if you have a working config with storagepath configured and tested, share it here.

Thanks in advance
 
#5
I tried the exact thing, with $VH_ROOT and the whole path too with no results. I'm gonna remove everything and try again. If still not working, is there a specific log I should check? Any level?

Thanks for your help
 
Top