説明
Speed up wordpress rest api by filter loaded plugin for every route.
On each rest api request wordpress load every plugins, this is a bottleneck and the rest api slow down.
This plugin install a must use plugin for filter plugins before load to set only desired plugins load by route.
The must use plugin is uninstall on desactivate the rest-manager plugin.
Features:
- Disbale selected rest route.
- Filter plugins load by rest route.
インストール
- Upload the plugin files to the
/wp-content/plugins/rest-manager
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress
- Use the Settings->Rest Manager screen to configure the plugin
FAQ
- Installation Instructions
-
- Upload the plugin files to the
/wp-content/plugins/rest-manager
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress
- Use the Settings->Rest Manager screen to configure the plugin
- Upload the plugin files to the
評価
2018年6月5日
Recently I have a project using WordPress rest api with custom endpoint. 2xxms to 700ms from my registered custom endpoint. After search in Google, it due to everytime WordPress will load all plugin. When I ready to alter my code with only load wp core. I found this plugin. It is useful to speed up rest api call and without recode any my existing project.
Since my registered restapi a independent without any plugin.
Now speed up to 50-100ms after using this plugin.
Happy coding.
2017年12月6日
I recently re-coded a custom comments plugin to work with the WP REST API instead of using admin-ajax.php. This made retrieval of comments much faster, but seemed to have little effect on the speed of posting of comments.
Then I came across this plugin. I used it to limit the plugins that fired when posting a comment, and I timed the difference using the REST API Log plugin. I found that the time to post a comment fell from between 120ms and 250ms to always being less than 40ms. That's a huge improvement!
Thanks very much for this impressive plugin!
貢献者と開発者
変更履歴
1.0.7
- Fix default active “on” route option if route not exist in “rest-manager_routes” wp options.
On install new plugin with new routes the route option is not correctly set to default.
1.0.6
- Change settings column name from Select to Active
1.0.5
- Fix load settings fields for route fields
- On filter route force to load rest-manager if route is filtered and if not active.
1.0.4
- Add remove old deprecated mu-plugin.
1.0.3
- Update Readme
- Fix version
1.0.2
- Fix mu plugin name
- Fix pluggable function not exist.
- Add delete option on uninstall plugin