litespeedtech / litespeedtech/openlitespeed

/usr/local/lsws/cachedata/priv/ can take up all disk space

Open
#276 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.5k
Forks
233
Avg merge
2d 19h
Merged PRs (30d)
5

Description

Over time, especially if there are many hosts, the disk space fills up with cache files. The documentation https://docs.litespeedtech.com/lscache/basics/ and https://openlitespeed.org/kb/litespeed-cache-on-openlitespeed-without-plugins/) says that this is solved ... by simply deleting old files via crontab. However, this option is not practical.

Is it possible to set the cache space limit in the "[module cache](https://openlitespeed.org/kb/openlitespeed-cache-module/)" parameter in the host configuration?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked cache documentation and the OpenLiteSpeed module-cache reference, then trace how host cache settings are defined and applied. Determine whether a configurable cache-space limit can be supported; done would be a documented configuration approach that prevents cache files from consuming all disk space without relying on cron.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.