• Hi

    I am creating a new plugin that uses wordpress REST API for my website. My website has high load time, but I think there must be a way to work it faster with REST API. I created a function that triggers with rest_api_init action and registers routes with calling register_rest_route function. Is there any way to decrease response time?

    Thanks

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Decrease the API response time? There’s little that can be done. Decrease response time for a particular task outside the API? Maybe, depending on what you want to accomplish. Initializing WP takes a lot of server time no matter what you do, there is simply a lot of overhead involved. If you can fulfill a request without WP code, with just straight PHP, a lot of server time can be saved.

    Server time does not equate to response time, other factors play into a request that is beyond coded solutions. Slow and/or error prone communications, overloaded shared hosting servers, whether web server or DB server, etc.

Viewing 1 replies (of 1 total)

The topic ‘decrease response time of rest api’ is closed to new replies.