LSCache disk usage

Sindre

Well-Known Member
#1
I have a question regarding the LSCache. I notice that the cache grows very large over time. Initially, I was storing it on a RAM disk, but had to move it to a HDD as it used quite a lot of disk space. Right now it is 140 GB.

Is there some way to limit the disk usage for the LSCache?
 

mistwang

LiteSpeed Staff
#2
You can clean the cache directory with a cron job. with something like

find "/path/to/cache/dir/" -type f -mtime +1 -delete 2>/dev/null
or
find "/path/to/cache/dir/" -type f -mtime +1 2>/dev/null | xargs rm -f
 
Top