• Resolved traed

    (@traed)


    It seems the rest routes “status” and “clear_cache” aren’t working. GET /wp-json/hummingbird/v1/clear_cache?module=page_cache for example returns a rest_no_route error. I’ve tried different values for module or omitting it completly with the same result.

    I also appears to be incorrectly registered. register_rest_route is missing the args parameter and instead adds the module field directly after permissions_callback, unlike how status is setup. None of the regex used for matching the arguments work though.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @traed

    I hope you are doing good today.

    I pinged our Hummingbird Team so that they can review your query. Thank you for your patience while we look into this further.

    Kind Regards,
    Kris

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @traed ,

    I’m sorry for the delay.

    Can you try this instead?
    wp-json/hummingbird/v1/clear_cache/page_cache
    /wp-json/hummingbird/v1/status/caching
    By default, to clear cache we required edit_posts permission. But you can skip this by defining:
    define( 'WPHB_SKIP_REST_API_AUTH', true );

    kind regards,
    Kasia

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @traed ,

    We haven’t heard from you for several days now, so it looks like you don’t have any more questions for us.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘RESP API routes not working’ is closed to new replies.