该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Rest Manager

描述

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.

屏幕截图

  • Settings Page.
  • Rest route filter plugin.

安装

  1. Upload the plugin files to the /wp-content/plugins/rest-manager directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Rest Manager screen to configure the plugin

常见问题

Installation Instructions
  1. Upload the plugin files to the /wp-content/plugins/rest-manager directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Rest Manager screen to configure the plugin

评价

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!
阅读所有2条评价

贡献者及开发者

“Rest Manager” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Rest Manager”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

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