• Resolved spacemind

    (@j3th)


    Hello,
    I’m facing problem, that when I publish new post – cache is purged, but comment pagination links are served from outdated cached version:
    /post – correct date
    /post/comment-page-1 – outdated
    /post/comment-page-2 – outdated etc.

    They’re souldn’t be automatically purged on new post comment publish? If not, how to force that to happen?

    • This topic was modified 4 years, 5 months ago by spacemind.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @j3th

    Thank you for your inquiry and I am happy to assist you with this.
    Have you tried purging all cache and see if the issue persists?
    Thanks!

    Thread Starter spacemind

    (@j3th)

    Sorry I meant comment publication.

    If I purge post cache manually it works and cache is being reloaded properly.
    After publishing new comment without purging manualy cache, only /post has correct cache date, post/comment-page-1 etc. are outdated

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @j3th

    Thank you for the information.
    Can you please try adding those pages in Performance>Page Cache>Purge Policy>Additional pages: and specify additional pages to purge. Including parent page in path. Ex: parent/posts.
    Thanks!

    Thread Starter spacemind

    (@j3th)

    These are normal blog posts with paginated comments.
    Is there any regular expression I can paste there to force purging? Do you have any sample syntax? I mean something like this:

    [all posts]/comment-page-[every pagination number]

    so this would purge after comment publish such links as /sample-post/comment-page-1 and also for e.g. /sample-post-1/comment-page-33 etc.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @j3th

    No there is no such an option. Are you using any plugin for the comment section?
    What are the settings that you have enabled in Performance>Page Cache>Purge Policy?
    Thanks!

    Thread Starter spacemind

    (@j3th)

    No I’m not using any custom plugin. We just added comment pagination with paginate_comments_links() function. My settings in Purge Policy are as following:

    View post on imgur.com

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @j3th

    I’ve tried to replicate the issue but with no success.
    In my use case when the comment is updated and all cache is cleared.
    I can suggest that you try to use Page Fragment Caching. This allows you to wrap the PHP code with mfunc and create the Page Fragment Cache exception.
    Or you can try setting up a corn job on your server an call w3tc_flush_all();

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Paginated comments not purged’ is closed to new replies.