• Resolved Lufuchs

    (@lufuchs)


    Hello Mustafa, I am happy with your wonderful work. Thank you for providing this plugin to us!
    I have an issue, where I would need your advice:
    If an author creates a new post, this new post is not shown on a blog-page… the author has to wait until cron clears and creates a new cache.
    As an “admin” I can easily flush the cache by “purge current page” in the admin bar. How do I provide this function to other useres?

Viewing 1 replies (of 1 total)
  • Plugin Author Mustafa Uysal

    (@m_uysl)

    Hi @lufuchs,

    The functionality you’re referring to requires the manage_options capability, so it cannot be provided to other users.

    Typically, when a new post is published, the post archive page should be automatically purged. However, if your blog-page relies on a shortcode rather than a standard post archive, you can manually add its URL using the powered_cache_post_related_urls filter.

    For example:

    add_filter( 'powered_cache_post_related_urls', function ( $related_urls ) {
        $related_urls[] = home_url('blog-archive');
    
        return $related_urls;
    } );

    Alternatively, you can specify the blog archive URL under the “Purge Additional Pages” option in the Advanced Options.

    Please give it a try and let me know if the issue persists.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.