Important: since WordPress 5.3, WordPress already has an index on the autoload field: https://core.trac.wordpress.org/ticket/24044
重要提示:自WordPress 5.3起,WordPress已在自动加载字段中具有索引:https://core.trac.wordpress.org/ticket/24044 h3>
You don’t need this plugin if you run WP >= 5.3
如果您运行WP> = 5.3,则不需要此插件 p>
Add Index To Autoload Plugin
将索引添加到自动加载插件 h3>
This tool will speed up your database queries by adding an index to the “autoload” field.
此工具通过在“自动加载”字段中添加索引来加快数据库查询的速度。
With this index the query time for the autoload option will not increase with growing table size.
使用此索引,自动加载选项的查询时间将不会随着表大小的增加而增加。
Therefore it helps speeding things up – especially with big option-tables.
因此,它有助于加快处理速度-尤其是使用大型选项表时。 p>
Plugin-Overview
插件概述 h3>
This plugin offers four options:
此插件提供四个选项: p>
- A one-click check mechanism to check if indexes on the autoload field exist
- 一键式检查机制,以检查自动加载字段上的索引是否存在 li>
- An option that adds an index to the autoload field
- 将索引添加到自动加载字段的选项 li>
- One-click index removal
- 一键删除索引 li>
- Adding a simple wp-cronjob, that periodically checks if the index still exists and notifies you, if it doesn’t.
- 添加一个简单的wp-cronjob,它会定期检查索引是否仍然存在并通知您(如果不存在)。 li>
ul>
Support
支持 h3>
If you encounter any issues, please leave a support ticket on the WordPress.org Forum
如果遇到任何问题,请在 WordPress.org论坛上保留支持记录。
p>
Bug reports
错误报告 h3>
Bug reports for this Plugin are welcomed on GitHub.
此插件的错误报告欢迎在GitHub上。
Please note GitHub is not a support forum, and issues that aren’t properly qualified as bugs will be closed.
请注意,GitHub不是支持论坛,并且由于错误而无法完全解决问题。 p>
From within WordPress
在WordPress内部 h3>
- Visit ‘Plugins > Add New’
- 访问“插件>添加新内容” li>
- Search for ‘Add Index To Autoload’
- 搜索“添加索引以自动加载” li>
- Activate Add Index To Autoload from your Plugins page.
- 从“插件”页面激活“添加索引以自动加载”。 li>
- Go to “after activation” below.
- 转到下面的“激活后”。 li>
ol>
Manually
手动 h3>
- Upload the
add-index-to-autoload
folder to the /wp-content/plugins/
directory - 将
add-index-to-autoload code>文件夹上载到 / wp-content / plugins / code>目录 li>- Activate the Add Index To Autoload through the ‘Plugins’ menu in WordPress
- 通过WordPress中的“插件”菜单激活“添加索引以自动加载” li>
- Go to “after activation” below.
- 转到下面的“激活后”。 li>
ol>
How to
操作方法 h3>
- After activation you should see a new subpage under Tools > Add Index To Autoload
- 激活后,您应该在工具>将索引添加到自动加载下看到一个新的子页面 li>
- Backup your WordPress database (optional but recommended!)
- 备份您的WordPress数据库(可选,但推荐!) li>
- Go to the “Options” Section below and click the Add Index button
- 转到下面的“选项”部分,然后单击“添加索引”按钮 li>
- Click the Check button: You should see a success message after a couple of seconds.
- 单击“检查”按钮:几秒钟后,您应该会看到一条成功消息。
4a.
4a。
If you don't, please issue a support ticket on the WordPress.org Forum
如果不这样做,请在 WordPress.org论坛 li上发出支持票
>
>
- Specify a periodic check for the autoload field (optional but recommended!)
- 为自动加载字段指定定期检查(可选,但建议使用!) li>
ol>