It should be possible to use rest_get_server() to execute same-domain requests without the need for HTTP requests or the associated caching. Then internal queries in the REST API block should always appear up to date rather than minutes or hours behind other queries.
It should be possible to use
rest_get_server()
to execute same-domain requests without the need for HTTP requests or the associated caching. Then internal queries in the REST API block should always appear up to date rather than minutes or hours behind other queries.