[Hummingbird Pro] Clear cache for specific page (using cron job or other automatic system)

1

On some websites I want to refresh a certain page on a more regular base. Most pages are fine with the side wide rules like on page updated, comment post or schedule, but others need more detail.

So I want to refresh the cache of a page automatically. Maybe with a specific querystring which I can use in a CRON job.

  • Daniel Roman
    • Syntax Hero

    Hi Florian,
    As far as I know, there is no premade tool to perform that action.
    I’ve checked WP CLI commands and, as well as there’s a command for Smuxh Pro, there is no command for Hummingbird Pro. It could be a good feature to ask for to WPMUDEV team.
    Sadly, I think it requires a bit of advanced coding to be reached.
    If I’m not wrong, the only way could be to do your custom plugin, which would provide an endpoint to be called, and would perform the cache invalidation for your desired contents. It also could implement a command for WP CLI, that would be more secure, as it could be called only from your own server.
    Of course both ways would imply a research inside of Hummingbird code and API.
    I hope that this will help you.

    Kind regards,
    Daniel

  • Adam Czajczyk
    • Support Gorilla

    Hi Florian

    I hope you’re well today and thank you for sharing the idea!

    As Daniel Roman mentioned (thank you!) WP CLI would be very handy tool for such use but currently it’s not yet supported. However, we do have plan to implement it and it’s already on a “to do” list so it’s going to be added in future.

    There’s also an API that could possibly be used to create your own code, specifically this can be helpful:

    https://wpmudev.com/docs/api-plugin-development/hummingbird-api-docs/#action-wphb_clear_page_cache

    If you want to give it a shot by yourself then in case you’d have any additional questions on it or needed some assistance, please start a separate support ticket and we’ll be happy to help.

    As for the feature itself, I think it could be a great addition to the plugin and I’ve already suggested it to our Hummingbird Team. Please note that I cannot make promises (nor give ETA) at this point but I made them aware of your idea and our developers will surely take it under consideration when planning future development of the plugin.

    Best regards,
    Adam