amjtn
Hi,
The issue is with ownership and group permissions. WordPress runs as your account user, but LiteSpeed runs as another system user (often nobody or lsws). If the cache directory is owned by accountusername:nobody, WordPress can create files but LiteSpeed cannot remove them.
Try the following:
Make the lscache directory owned by your site user
chown -R accountusername:accountusername /home/accountusername/lscache
Give group write permissions
chmod -R 775 /home/accountusername/lscache
Add the LiteSpeed system user (usually 'nobody') to your account group
usermod -a -G accountusername nobody
Then restart LiteSpeed:
systemctl restart lsws
This way both WordPress (running as accountusername) and LiteSpeed (running as nobody) have permission to read and delete cache files. Also double‑check that your vhost config points to the same path:
module cache {
storagePath $VH_ROOT/lscache/$VH_NAME
}
After these changes, the “Purge All” action in the LiteSpeed Cache plugin should work correctly.