Tags Cache not clear when publish new posts
-
Hi,
The permanent structure is https://thesitename.com/custom/%post_id%/
When new post is published, the tags archive cache is not cleared. I do have ‘Term archive’ selected on Auto Purge Rules setting.
Report number: BFPMRFKQ
Thanks.
-
Hi,
Could you please try one thing?
Check “All pages” in Purge tab and do a post , to see if tags gets purged.
If so , then please uncheck “All pages” and check all others and do a post , see how it goes.
Best regards,
Ruikai.Hi,
When Check “All pages” in Purge tab and do a post, tags get purged.
After that I unchecked “All pages” and check all others, do a post, tag is no longer purged.
Thanks.
Hi,
Please try follow this wiki here , to get the page tag , and make comparison for purge-tag and page-tag ?
Best regards,
Ruikai.From the log:
08/08/18 15:00:46.354 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] ——POST HTTP/1.1 (HTTPS) /wp-admin/admin-ajax.php
08/08/18 15:00:46.354 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] Query String:
08/08/18 15:00:46.354 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
08/08/18 15:00:46.354 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] Accept: */*
08/08/18 15:00:46.354 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] Accept Encoding: gzip
08/08/18 15:00:46.354 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] Cookie _lscache_vary: logged-in:1;role:99
08/08/18 15:00:46.354 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] X-LSCACHE: true
08/08/18 15:00:46.420 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] Media init
08/08/18 15:00:46.420 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] [Ctrl] X Cache_control -> private ( logged in user )
08/08/18 15:00:46.421 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] CDN init
08/08/18 15:00:46.421 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] Task init
08/08/18 15:00:46.421 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] [Router] LSCWP_CTRL bypassed empty
08/08/18 15:00:46.430 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] [Ctrl] X Cache_control -> no Cache ( Admin page ) => LSC_Control::set_nocache()@317 => LSC_Admin->admin_init()@134 => WP_Hook->apply_filters()@286
08/08/18 15:00:46.528 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] ——–purge_tags prev is: 746
08/08/18 15:00:46.530 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] [Purge] added Po.748,URL.28c2180eb0830fb671a5444ff8e49fc4,W.recent-posts-2,Po.746,T.77,A.1,PT.post,F,H,PGS,PGSRP,D.20180808,D.201808,D.2018 => LSC_Purge->_add()@308 => LSC_Purge::purge_post()@655 => WP_Hook->apply_filters()@288 => WP_Hook->do_action()@310 =>
/home/folder/public_html/wp-includes/post.php@453 =>
/home/folder/public_html/wp-content/themes/mytheme/functions.php@3673 =>
/home/folder/public_html/wp-includes/class-wp-hook.php@3471 => WP_Hook->apply_filters()@286 => WP_Hook->do_action()@310
08/08/18 15:00:46.530 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] X-LiteSpeed-Purge: public,7641_Po.748,7641_URL.28c2180eb0830fb671a5444ff8e49fc4,7641_W.recent-posts-2,7641_Po.746,7641_T.77,7641_A.1,7641_PT.post,7641_F,7641_H,7641_PGS,7641_PGSRP,7641_D.20180808,7641_D.201808,7641_D.2018
08/08/18 15:00:46.530 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] [Purge] added REST => LSC_Purge->_add()@308 => LSC_Purge::purge_post()@657 => WP_Hook->apply_filters()@288 => WP_Hook->do_action()@310 =>
/home/folder/public_html/wp-includes/post.php@453 =>
/home/folder/public_html/wp-content/themes/mytheme/functions.php@3673 =>
/home/folder/public_html/wp-includes/class-wp-hook.php@3471 => WP_Hook->apply_filters()@286 => WP_Hook->do_action()@310
08/08/18 15:00:46.530 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] X-LiteSpeed-Purge: public,7641_Po.748,7641_URL.28c2180eb0830fb671a5444ff8e49fc4,7641_W.recent-posts-2,7641_Po.746,7641_T.77,7641_A.1,7641_PT.post,7641_F,7641_H,7641_PGS,7641_PGSRP,7641_D.20180808,7641_D.201808,7641_D.2018,7641_REST
08/08/18 15:00:46.530 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] [Ctrl] X Cache_control -> stale
08/08/18 15:00:46.540 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] [Core] CHK html bypass: miss footer const
08/08/18 15:00:46.540 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] [Ctrl] not cacheable before ctrl finalize
08/08/18 15:00:46.540 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] [Router] get_uid: 1 => LSC_Router::get_uid()@176 => LSC_Vary->finalize_default_vary()@342 => LSC_Vary->_update_default_vary()@301 => LSC_Vary->_finalize()@515
08/08/18 15:00:46.540 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] [Router] get_role: administrator
08/08/18 15:00:46.540 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] [Cfg] role in vary_group [group] 99
08/08/18 15:00:46.540 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] [Vary] show_admin_bar_front: false
08/08/18 15:00:46.540 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] [Vary] no custimzed vary
08/08/18 15:00:46.540 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] X-LiteSpeed-Cache-Control: no-cache
08/08/18 15:00:46.541 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] X-LiteSpeed-Purge: public,stale,7641_Po.748,7641_URL.28c2180eb0830fb671a5444ff8e49fc4,7641_W.recent-posts-2,7641_Po.746,7641_T.77,7641_A.1,7641_PT.post,7641_F,7641_H,7641_PGS,7641_PGSRP,7641_D.20180808,7641_D.201808,7641_D.2018,7641_REST
08/08/18 15:00:46.541 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] [Core] CHK html bypass: miss footer const
08/08/18 15:00:46.541 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] [Media] bypass: Not frontend HTML type
08/08/18 15:00:46.541 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] GUI bypassed by no counter
08/08/18 15:00:46.541 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] [Optm] bypass: Not frontend HTML type
08/08/18 15:00:46.541 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] CDN bypass
08/08/18 15:00:46.541 [2405:4800:548f:1f49:8cfa:606d:228b:ff20:20311 1 HqU] End responseIs anything wrong please?
Hi,
I just noticed one thing , and want to clarify it.
when you say tags archive is not purged , I assume we are talking about https://site/tag/something , this tag page, right ?
If so , when you do a new post , does that tag is included in your new post ?
Best regards,
Hi,
As I use ‘Custom Structure’ in the ‘Permalink Settings’, the tag archive should be: https://site/custom/tag/something
When I do a new post, it does include the tag so the tag archive should be purged as defined in ‘Purge Settings’ of ‘LiteSpeed Cache Settings’.
But it’s not purged.
Thanks.
Hi,
Please follow the exact steps:
1. Enable debug log to your/admin IP , enable advance log.
2. Clean all previous debug log.
3. Clean all cache.
4. Access your tag page, for example https://domain.com/tag/litespeedcache, make sure it’s cached , by checking header , x-litespeed-cache: hit, you can use browser dev tool (press F12 before open page, go to network tab)
5. Do a post , with tag in step 3.
6. Now check same URL in step 3 for cache header, assume it’s hit as not being purged.
7. Now goes to debug log , copy paste it to https://pastebin.com/
Best regards,
Ruikai.Hi,
/pin/tag/back-white/ is your tag page, right ?
Please submit a ticket here
We will have to dig it deeper…
Best regards
The topic ‘Tags Cache not clear when publish new posts’ is closed to new replies.