WordPress Plugin Serves Static JSON Feeds to Cut API Response Times by 90%
A new open-source WordPress plugin called Static JSON Export & CORS Whitelist aims to solve two common pain points in headless WordPress development: slow REST API responses and CORS errors. Instead of querying the MySQL database on every frontend request, the plugin pre-generates static JSON files whenever content is published or updated. This reduces response times from a typical 200–500ms range down to approximately 30–50ms, while also eliminating database load during traffic spikes. Developers can whitelist frontend origins such as localhost URLs directly from the WordPress admin panel, removing the need for server-level CORS configuration. The plugin exposes clean REST endpoints compatible with modern frontend frameworks like Next.js and Astro.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in