• Resolved vsix

    (@vsix)


    Hi there,

    I’ve a general problème with W3 total cache. The front page is not purged when I add or edit a new post.

    I have ticked front page and home page in the purge policy of page cache, but it does not change anything :(. Is there a way to automate this behavior ?

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

    (@vmarko)

    Hello @vsix

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    Can you please share your website URL? Have you tried to reload the page when the post is edited or a new post added?
    Are you trying to check the from the page as logged in user or incognito?
    Thank you!

    Thread Starter vsix

    (@vsix)

    Hi @vmarko,

    You can find a test blog at http://www.kombo.org.

    That’s the problem, reloading does not change anything cause the cache is not purged…
    When I’m logged all is fine (cause I’ve enabled the option to by-pass cache when logged in), but I can’t see any changes in incognito mode :/

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @vsix

    When you edit a post or the article and purge the cache, do you see the updated front page?
    Thanks!

    Thread Starter vsix

    (@vsix)

    Hi @vmarko,

    When I purge the cache manually the front page is updated.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @vsix

    Thank you for the info. Can you please share your settings in Performance>Page Cache>Purge Policy?
    Also, what settings do you have enabled in Performance>Browser Cache>HTML&XML?
    Thank you!

    Thread Starter vsix

    (@vsix)

    Thank you for your answer @vmarko.

    Here you can find my settings in Performance>Page Cache>Purge Policy :
    https://ibb.co/HFp08gC

    And there are my Performance>Browser Cache>HTML&XML settings :
    https://ibb.co/yQwpbwV

    Is there something I’m missing ?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @vsix

    Try also selecting these:
    Post comments pages
    Post author pages
    Post terms pages

    See if the issue persists.
    Thanks!

    Thread Starter vsix

    (@vsix)

    Hi @vmarko,

    Problem is the same, my home page is not up to date as opposed to my terms pages.

    Thread Starter vsix

    (@vsix)

    Ok I figured out.

    • When I use the wordpress admin editor, everything is fine, my front page is updated even in incognito mode.
    • When I use the wp-cli command line too to publish a new post, the front page is not updated, here is the main problem.

    I think there is an event triggered from wordpress graphical UI that is not in the wp-cli, that’s why W3TC does not purge the cache correctly when using wp-cli.

    How do you technically trigger the cache purge when a new post come ?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @vsix

    Thank you for the information.
    YOu can use wp-cli to purge the cache.

    wp w3-total-cache flush an-attribute-below

    all
    posts – page and posts cache
    post – page cache
    database
    object
    minify

    Thank you!

    Thread Starter vsix

    (@vsix)

    Hello @vmarko,

    I find out where my problem was.

    I’m using the bitnami/bitnami-docker-wordpress container, and by default in the wp-config.php, WP_SITEURL and WP_HOME are set to http://127.0.0.1 when using wp-cli. That’s why when I’m using wp-cli to add a new post, it does not trigger the purge. After some researches, I find out that W3TC names the cache folder with WP_SITEURL, so obviously, when I use wp-cli, it tries to purge a folder named 127.0.0.1 instead of the correct cache folder of my website.

    Since it’s not really a problem with W3TC I opened an issue on bitnami/bitnami-docker-wordpress (https://github.com/bitnami/bitnami-docker-wordpress/issues/236).

    Many thanks for your help :).

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Front page cache not purged’ is closed to new replies.