LSCache disk usage

Discussion in 'LiteSpeed Cache General' started by Sindre, Jun 11, 2014.

  1. Sindre

    Sindre Well-Known Member

    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?
  2. mistwang

    mistwang LiteSpeed Staff

    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
    find "/path/to/cache/dir/" -type f -mtime +1 2>/dev/null | xargs rm -f

Share This Page