• Resolved Martin Freisinger

    (@martyshka)


    Hello,

    I discovered in the Page Cache Purge log that a flush_all occurs when saving a woocommerce attribute.

    I would like to reduce flush_all events to a minimum, especially when I know that changes affect only one page/url, like in this case. I’d rather do a manual flush in cases when content needs to be updates across the site.

    Can that be set up?

    Below you can find the stack trace of such an event, in case this helps

    flush_all
    #0wp-includes/class-wp-hook.php(324)W3TC\PgCache_Plugin–w3tc_flush_posts (null)
    #1wp-content/plugins/w3-total-cache/CacheFlush_Locally.php(167)do_action (“w3tc_flush_posts”, null)
    #2wp-content/plugins/w3-total-cache/w3-total-cache-api.php(315)W3TC\CacheFlush–flush_posts (null)
    #3wp-includes/class-wp-hook.php(322)w3tc_flush_posts ()
    #4wp-includes/taxonomy.php(3452)do_action (“edited_term”, 2162, 2162, “pa_gruppierung”, {“alias_of”:””,”description”:”.h2.Pflanzen für eine gruppenweise Pflanzung./h2.\r\nDie Anordnung ..)
    #5wp-admin/edit-tags.php(183)wp_update_term (2162, “pa_gruppierung”, {“alias_of”:””,”description”:”.h2.Pflanzen für eine gruppenweise Pflanzung./h2.\r\nDie Anordnung ..)

    Best regards
    Martin

    The page I need help with: [log in to see the link]

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

    (@vmarko)

    Hello @martyshka

    Thank you for reaching out and I am happy to help!

    Can you please share the screenshot of the Performance>Page Cache>Purge policy section?
    Let me know which options are enabled there

    Thanks!

    Thread Starter Martin Freisinger

    (@martyshka)

    Hello @vmarko,

    thank you! You can find the screenshot here https://snipboard.io/iXJ56f.jpg

    Best regards

    Martin

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @martyshka

    Thank you for your feedback.
    As you can see in the Stack you shared:
    W3TC\PgCache_Plugin–w3tc_flush_posts

    In the purge policy section, you can uncheck the option Posts page and this will preven the purge when the content is updated and allow you to purge this manually

    I hope this helps!

    Thread Starter Martin Freisinger

    (@martyshka)

    Hello @vmarko

    so, trying to get the terminology right: in the purge policy, “post page” means the respective archives/feeds of whatever post type they account for. However, “postS page” refers to all single posts (of whatever type: blog, product etc). Correct?

    Thank you for the help!

    Best regards

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @martyshka

    Thank you for your patience. After further investigation, it seems that something else is calling the cache flush and not the W3 Total Cache.
    Is there a chance you ca enable Page Cache Purge Log in Performance>General Settings>Debug section and save the taxonomy, check the purge log and it will show what is calling the flush_all ?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘flush_all triggered by saving woocommerce attribute’ is closed to new replies.