Hello
Purge logs are logged. Follow these steps:
- First you need to turn
ON Debug Log and set Debug Level to Advanced from page: /wp-admin/admin.php?page=litespeed-toolbox#settings-debug
- Then go to:
/wp-admin/admin.php?page=litespeed-toolbox#log_viewer by clicking on [B] Purge Log
Hope this helps you!
If you need more info, you can write here
Thank you!
Thanks, I’ll monitor the log.
Meanwhile, can you check if updating a profile will clear All the cache? It seems so.
Is there a way to disable ALL cache purge? I want to programatically chose what and when to clear.
Additional note:
Here’s an entry from the Purge Log:
04/26/24 15:41:35.969 [**masked** 1 Kgp] 💓 ------POST HTTP/1.1 (HTTPS) /wp-json/wp/v2/posts/601385
04/26/24 15:41:35.969 [**masked** 1 Kgp] Query String: _locale=user
04/26/24 15:41:35.969 [**masked** 1 Kgp] HTTP_REFERER: https://www.**masked**/wp-admin/post.php?post=601385&action=edit
04/26/24 15:41:35.969 [**masked** 1 Kgp] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
04/26/24 15:41:35.969 [**masked** 1 Kgp] Accept: application/json, */*;q=0.1
04/26/24 15:41:35.969 [**masked** 1 Kgp] Accept Encoding: gzip, br
04/26/24 15:41:35.969 [**masked** 1 Kgp] Cookie _lscache_vary: admin_bar:1;guest_mode:1;logged-in:1;role:50
04/26/24 15:41:35.969 [**masked** 1 Kgp] X-LSCACHE: true
04/26/24 15:41:35.969 [**masked** 1 Kgp] X-LiteSpeed-Purge: public,stale,482_Po.601385,482_URL./**masked**/,482_Po.601376,482_Po.601391,482_T.1,482_T.41016,482_FD,482_A.103,482_F,482_H,482_REST,482_URL./,482_URL./noticias/ => LiteSpeed\LSC->send_headers()@620 => WP_Hook->apply_filters(,ARRAY)@324 => WP_Hook->do_action(ARRAY)@348 =>
/home/admin/domains/**masked**/public_html/wp-includes/load.php@517
Let me know if I’m reading it correctly:
A POST request to /wp-json/ from the post.php admin page, issued a Cache Purge. But what was purged? I assume this was triggered when saving post, correct?
Anyway, I want full control of cache purging, because this is a site with big audience and multiple authors updating a lot of stuff every minute, and I’m seeing full cache being purged at least twice per hour.
@cantuaria
A few instances where all cache is purged:
– when some LSCWP settings are saved(changed)
– on plugin/theme updates(this can be disabled from: LSCWP->Cache->Purge->Purge All On Upgrade)
– Other plugins/themes that need cache clear at some point( Avada, Beaver builder, Autoptimize, etc)
But there are situations where part of cache is cleared(post update/edit/delete).
If you can tell, why do you need the clear cache to be so controlled?
You are correct. That was a clear cache, but it cleared public cache, stalled cache and some tags: X-LiteSpeed-Purge: public,stale,482_Po.601385,482_URL./**masked**/,482_Po.601376,482_Po.601391,482_T.1,482_T.41016,482_FD,482_A.103,482_F,482_H,482_REST,482_URL./,482_URL./noticiasv
Thanks, that was clarifying. I guess I tracked and deactivated every place where the full page cache was triggered. I’ve also disabled the crawler, I guess that for a news website with thousands of posts, it doesn’t make sense, it also helped reducing server usage.
Also there is cache delete when a post is edited/added/deleted.