• Resolved JohnDBB

    (@johndbb)


    Hello

    We have seen that every time the preview of an article being created is launched from the admin editor the plugin purges all the caches selected in the Purge Policy option, which in our site that has thousands of pages and dozens of simultaneous editors is a big problem because of all the time it takes to generate the preview. Is there any way to stop it from purging in the preview?

    Thank you in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @johndbb

    Thank you for reaching out and I am happy to help!
    Are you using any SEO plugin? Can you please enable the Page Cache purge log and once the preview of the new page/article is done, check the purge log and let me know what is calling for a flush.

    Thanks!

    Thread Starter JohnDBB

    (@johndbb)

    Hi @vmarko, thank you for your answer. Yes, we are using Yoast SEO and Yoast SEO PRO. I cannot activate Page Cache Purge Log as it’s a Pro version feature, but you can see in the attached image what we get from server logs when opening a preview version of a post being created. I hope it helps. Thank you in advance! (https://www.emenia.es/wp-content/uploads/2023/10/purge-1.png)

    • This reply was modified 1 year, 1 month ago by JohnDBB.
    • This reply was modified 1 year, 1 month ago by JohnDBB.
    • This reply was modified 1 year, 1 month ago by JohnDBB.
    Thread Starter JohnDBB

    (@johndbb)

    Hi again @vmarko If the capture is not enough please let me know. We can go to the pro version if needed. Thank you in advance.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @johndbb

    Thank you for your feedback. The log you shared is not showing everything.
    Once the Post is previewed or published, the W3 Total Cache only purges the post/page URL and not all cache.
    I’ve tested this with YOAST:

    #0	wp-includes/class-wp-hook.php(310)	W3TC\PgCache_Plugin--w3tc_flush_posts (null)
    #1	wp-content/plugins/w3-total-cache/CacheFlush_Locally.php(170)	do_action ("w3tc_flush_posts", null)
    #2	wp-content/plugins/w3-total-cache/w3-total-cache-api.php(296)	W3TC\CacheFlush--flush_posts (null)
    #3	wp-content/plugins/w3-total-cache/w3-total-cache-api.php(329)	w3tc_flush_posts ()
    #4	wp-content/plugins/wordpress-seo/inc/class-wpseo-utils.php(418)	w3tc_pgcache_flush ()
    #5	wp-includes/class-wp-hook.php(312)	WPSEO_Utils--clear_cache ({"tracking":false,"toggled_tracking":false,"license_server_version":"2","ms_defaults_set":false,"i..)

    As you can see in the stack trace, the WP SEO plugin is calling w3tc_flush_all();
    You can try This solution.
    Let me know if this helps!

    Thread Starter JohnDBB

    (@johndbb)

    Thank you @vmarko. We will try your solution. Thanks a lot for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Avoid purge cache in preview mode’ is closed to new replies.