Hey @sambo613,
The /wp-json/wordpress-popular-posts/v2/widget request is reading from your database to pull your popular posts data and render them on the front-end.
Database read operations are usually fast unless there’s a problem with the database itself, for example:
- Database tables needing optimization (data fragmentation, storage, etc)
- Large database tables (in WPP’s case there’s a Performance wiki section that talks about this, I highly recommend giving it a read)
- Lack of proper caching mechanisms (eg. Redis, Memcached, etc.), specially with large / high-traffic sites
- Presence of other resource-intensive scripts / processes on your server that are having a direct impact on your site’s REST API endpoints
And the list goes on.
It might be a good idea to do a full site review to find all potential bottlenecks and optimize as much as possible.
Thank you. I’ve disabled the plugin in the meantime because it has crashed our site. Could I reach out to you to discuss further?
Sure, feel free to use my contact form to reach out to me. I usually prefer public interactions though because it often helps future readers debug their own issues as well so please keep that in mind.
-
This reply was modified 11 months, 2 weeks ago by
Hector Cabrera. Reason: Added link to contact form
Got your message. Reply sent.
OP reported via email that the issue was being caused by a third-party plugin and so I’m marking this topic as resolved for now.