litespeedtech / litespeedtech/lscache_wp

The cssjs directory keeps growing

Open
#291 11 comments 2 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
257
Forks
123
PR merge metrics
No merged PRs in 30d

Description

We noticed that the Litespeed cache plugin is continuously generating a huge amount of disk usage in /wp-content/litespeed/cssjs directory.

Day 1 5.8M (after clearing all Litespeed cache):
Day 2: 1.8G
Day 3: 3.4G
Day 4: 5.6G 7570 files

The WordPress cron does not clear these files, only Litespeed Clear All Cache option.

The complete website disk usage is around 1.5GB but over 5.4GB cssjs data and is growing every day.
The website has a low number of posts/pages but 2000 WooCommerce products.

How do you handle clearing the cssjs files or when?
Do you re-use the cssjs files if they are the same or generating a new combination for every URL?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the WordPress cron cleanup path and the LiteSpeed Clear All Cache behavior for /wp-content/litespeed/cssjs. Trace how CSS/JS combinations are generated and whether identical combinations are reused. Done means the expected cleanup and reuse behavior is defined and the cssjs directory no longer grows without bound.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.