litespeedtech / litespeedtech/lscache_wp
Exclude language slug from CCSS and UCSS
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 257
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
Thank you for all the awesome work 🙏
I have this use case where we have 16 languages.
For example:
https://chaga.shop/en/products/
https://chaga.shop/pt/products/
https://chaga.shop/es/products/
https://chaga.shop/fr/products/
…
All are the same content, but LiteSpeed creates a separated UCSS and CCSS for each language slug. Every time we need to clear the cache we have more than 500 requests for UCSS/CCSS which takes a long time and also slows the website.
add_filter( 'litespeed_ucss_per_pagetype', '__return_true' ); helps a bit but would love to have a feature to exclude the language slug.
Report Number: RUTCFZCI
Related Ticket: https://wordpress.org/support/topic/exclude-language-slug-from-ccss-and-ucss/
Really thank you 🙂
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the UCSS and CCSS generation paths and the existing litespeed_ucss_per_pagetype filter mentioned in the issue. Compare the multilingual URLs in the report and define how language slugs should be excluded; done means equivalent language URLs no longer create separate UCSS/CCSS requests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100