Prevent wpDiscuz from purging other posts
-
Hi, I’ve noticed that after a comment is made, the wpDiscuz plugin is causing the original post — along with two others — to be purged in the Litespeed Cache Plugin.
How can I prevent wpDiscuz from purging the additional posts? It should only purge the post where the comment was made, not any others!
In this example, the original post ID is 326337, and only this post should be purged. The two other posts that are also being purged are IDs 44544 and 336138.
10/20/24 19:51:04.642 [151.244.203.204:53598 1 wey] ?? --------purge_tags prev is: 44544
10/20/24 19:51:04.642 [151.244.203.204:53598 1 wey] ?? --------purge_tags next is: 336138
10/20/24 19:51:04.646 [151.244.203.204:53598 1 wey] ?? added _Po.326337,_URL./post-326337.html/,_W.recent-posts-1,_Po.44544,_Po.336138,_T.126940,_T.121080,_T.126936,_T.121082,_T.126942,_T.126922,_T.127168,_T.377,_T.126944,_FD,_H => LiteSpeed\Root::debug(?? added _Po.326337,_URL./post-326337.html/,_W.recent-posts-1,_Po.44544,_Po.336138,_T.12)@51 => LiteSpeed\Purge->_add(ARRAY)@501 => LiteSpeed\Purge::add(ARRAY)@473 => LiteSpeed\Purge->purge_post(326337)@885 => LiteSpeed\API->purge_post(326337)@221 => WP_Hook->apply_filters(,ARRAY)@324 => WP_Hook->do_action(ARRAY)@348 =>
/home/xxx/public_html/wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelperOptimization.php@517 => WpdiscuzHelperOptimization->cleanPostCache(326337)@269
10/20/24 19:51:04.646 [151.244.203.204:53598 1 wey] ?? X-LiteSpeed-Purge: public,stale,f51_Po.326337,f51_URL./post-326337.html/,f51_W.recent-posts-1,f51_Po.44544,f51_Po.336138,f51_T.126940,f51_T.121080,f51_T.126936,f51_T.121082,f51_T.126942,f51_T.126922,f51_T.127168,f51_T.377,f51_T.126944,f51_FD,f51_H
10/20/24 19:51:04.646 [151.244.203.204:53598 1 wey] ?? added _REST => LiteSpeed\Root::debug(?? added _REST,8)@51 => LiteSpeed\Purge->_add(ARRAY)@501 => LiteSpeed\Purge::add(REST)@473 => LiteSpeed\Purge->purge_post(326337)@887 => LiteSpeed\API->purge_post(326337)@221 => WP_Hook->apply_filters(,ARRAY)@324 => WP_Hook->do_action(ARRAY)@348 =>
/home/xxx/public_html/wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelperOptimization.php@517 => WpdiscuzHelperOptimization->cleanPostCache(326337)@269
10/20/24 19:51:04.646 [151.244.203.204:53598 1 wey] ?? X-LiteSpeed-Purge: public,stale,f51_Po.326337,f51_URL./post-326337.html/,f51_W.recent-posts-1,f51_Po.44544,f51_Po.336138,f51_T.126940,f51_T.121080,f51_T.126936,f51_T.121082,f51_T.126942,f51_T.126922,f51_T.127168,f51_T.377,f51_T.126944,f51_FD,f51_H,f51_REST
10/20/24 19:51:04.656 [151.244.203.204:53598 1 wey] [Core] CHK html bypass: miss footer const
10/20/24 19:51:04.659 [151.244.203.204:53598 1 wey] [Ctrl] not cacheable before ctrl finalize
10/20/24 19:51:04.659 [151.244.203.204:53598 1 wey] [Router] get_role:
10/20/24 19:51:04.659 [151.244.203.204:53598 1 wey] [Vary] role id: failed, guest
10/20/24 19:51:04.659 [151.244.203.204:53598 1 wey] [Router] get_role:
10/20/24 19:51:04.659 [151.244.203.204:53598 1 wey] [Vary] no custimzed vary
10/20/24 19:51:04.659 [151.244.203.204:53598 1 wey] ?? X-LiteSpeed-Cache-Control: no-cache
10/20/24 19:51:04.659 [151.244.203.204:53598 1 wey] ?? Cache-Control: no-cache, no-store, must-revalidate, max-age=0
10/20/24 19:51:04.659 [151.244.203.204:53598 1 wey] ?? X-LiteSpeed-Purge: public,stale,f51_Po.326337,f51_URL./post-326337.html/,f51_W.recent-posts-1,f51_Po.44544,f51_Po.336138,f51_T.126940,f51_T.121080,f51_T.126936,f51_T.121082,f51_T.126942,f51_T.126922,f51_T.127168,f51_T.377,f51_T.126944,f51_FD,f51_H,f51_REST
10/20/24 19:51:04.660 [151.244.203.204:53598 1 wey] [Router] get_role:
10/20/24 19:51:04.660 [151.244.203.204:53598 1 wey] [Vary] role id: failed, guest
10/20/24 19:51:04.660 [151.244.203.204:53598 1 wey] [Router] get_role:
10/20/24 19:51:04.660 [151.244.203.204:53598 1 wey] [Core] CHK html bypass: miss footer const
10/20/24 19:51:04.661 [151.244.203.204:53598 1 wey] [Core] run hook litespeed_buffer_finalize
10/20/24 19:51:04.661 [151.244.203.204:53598 1 wey] [Core] Silence Comment due to REST/AJAX
10/20/24 19:51:04.661 [151.244.203.204:53598 1 wey] Response headers --- array (
0 => 'Access-Control-Allow-Origin: https://www.example.com',
1 => 'Access-Control-Allow-Credentials: true',
2 => 'X-Robots-Tag: noindex',
3 => 'X-Content-Type-Options: nosniff',
4 => 'Referrer-Policy: strict-origin-when-cross-origin',
5 => 'X-Frame-Options: SAMEORIGIN',
6 => 'Content-Type: application/json; charset=UTF-8',
7 => 'Expires: Wed, 11 Jan 1984 05:00:00 GMT',
8 => 'X-LiteSpeed-Cache-Control: no-cache',
9 => 'Cache-Control: no-cache, no-store, must-revalidate, max-age=0',
10 => 'X-LiteSpeed-Purge: public,stale,f51_Po.326337,f51_URL./post-326337.html/,f51_W.recent-posts-1,f51_Po.44544,f51_Po.336138,f51_T.126940,f51_T.121080,f51_T.126936,f51_T.121082,f51_T.126942,f51_T.126922,f51_T.127168,f51_T.377,f51_T.126944,f51_FD,f51_H,f51_REST',
)
10/20/24 19:51:04.661 [151.244.203.204:53598 1 wey] End response
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.