• Resolved David

    (@deivison)


    Hello,

    I created a page that displays the most recent posts from a specific category using Elementor.

    When a new post is published or updated, the homepage cache is automatically cleared, but not this page’s cache.

    I’m using the “Clear cache only for related pages” option; I don’t want to use “Clear all cache”.

    I also don’t want to use “Prevent the following URIs from being cached”.

    I only want this page’s cache to be cleared when there are new posts or updates.

Viewing 1 replies (of 1 total)
  • Plugin Support Poonam Namdev

    (@poonam9)

    Hi @deivison,

    With “Clear cache only for related pages” enabled, the plugin only purges the URLs it knows are related to the post (single post URL, some archives, etc.).

    Your Elementor page that lists posts from a category is basically a “custom loop” page, so the plugin doesn’t automatically recognize it as “related” to those posts that’s why its cache isn’t being cleared.

    If you are comfortable with custom coding, you can try using a filter swcfpc_post_related_url_init – fired when building the list of related URLs to purge when a post is updated. You can hook into it and add your Elementor page URL whenever a post in that category is updated/published.

    Thank you!

Viewing 1 replies (of 1 total)

The topic ‘Clear specific page’ is closed to new replies.