litespeedtech / litespeedtech/lscache_wp

Purging private cache on wp_ajax

Open
#289 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
257
Forks
123
PR merge metrics
No merged PRs in 30d

Description

`header("X-LiteSpeed-Purge: private, *");`
This method was working in wp_ajax but stopped working for a while ago.

`do_action( 'litespeed_purge_private_all' );`
I tried to use this action instead, but it didn't worked in wp_ajax.

Example action;
```
add_action( 'wp_ajax_custom_action', 'custom_action' );
function custom_action() {
do_action( 'litespeed_purge_private_all' );
//do some stuff
wp_die();
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the provided custom wp_ajax action and compare the X-LiteSpeed-Purge header with the litespeed_purge_private_all action. Trace how private-cache purging is handled during AJAX requests; done means the example action reliably purges the private cache again.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.