litespeedtech / litespeedtech/lscache_wp
Hook "litespeed_api_purge_post" commented
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 257
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Description
As per documentation https://docs.litespeedtech.com/lscache/lscwp/api/ the hook litespeed_api_purge_post should be triggered when a post is purged, but in the code i found that this hook is commented. Is this a mistake ?https://github.com/litespeedtech/lscache_wp/blob/d1a0aef92424d1c32886f4d594e094ade141d6ad/src/api.cls.php#L110
I need a way to execute a function after a single post is purged, is there any other way to do it ?
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 with src/api.cls.php at line 110 and compare the commented hook with the linked LiteSpeed API documentation. Trace the single-post purge path to determine whether the documented hook is expected to run, and verify that a supported way exists to execute a function after that purge.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100