• Resolved camoeyes

    (@camoeyes)


    Just wondering why there’s the automatic entire site cache purge but what about when updating a post or page, clearing that, or even better when changing media?

    Just a thought ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @camoeyes,

    This will be in the next version of the plugin! We’ve already merged one PR and we have a GitHub issue open tracking some other wordpress hooks which can be used to automatically purge the cache by URL.

    Thanks,
    John

    There are many gotchas in trying to purge a cache on updates. One in particular that I found a bit hairy when contributing to nginx helper is that if WP is set up for paginated comments (Settings -> Discussion -> Break comments into pages…), then you need to either do some form of wildcard purge with the URL of the canonical post/page as a base, or you need to calculate how many pages of comments there are for a given post/page that changes and then loop through each of those comment pages to purge them individually by their URL which look like posturl/comment-page-1, posturl/comment-page-2, etc.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Clearing entire cache? What about single urls or media files?’ is closed to new replies.