litespeedtech / litespeedtech/lscache_wp

Hook "litespeed_api_purge_post" commented

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

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.