內容簡介
重要提示:自 WordPress 5.3 版本起,WordPress 已經在 autoload 欄位上建立索引:https://core.trac.wordpress.org/ticket/24044
若您使用 WP >= 5.3 版本,則無需使用這個外掛程式
將 Index 新增至 Autoload 外掛
這個工具可以透過為 autoload 欄位新增索引,來加快資料庫查詢速度。
有了這個索引,即使資料表不斷增加,autoload 選項的查詢時間也不會增加。
因此,這對於大型選項表格的網站,可加速網站速度。
外掛概述
此外掛程式提供四個選項:
一鍵式檢查機制,以檢查 autoload 欄位上是否有索引
新增一個索引至 autoload 欄位的選項
一鍵式索引移除
新增一個簡單的 wp-cronjob,以定期檢查索引是否仍存在,並通知您如有變動。
支援
如果您遇到任何問題,請在 WordPress.org 論壇 上留下支援票證。
錯誤報告
此外掛程式的錯誤報告,可以在 GitHub 上回報。
請注意,GitHub 不是支援論壇,未經詳細說明的問題,將會被關閉。
從 WordPress 內部
進入「外掛」>「新增外掛」
搜尋「Add Index To Autoload」
在「外掛」頁面啟用「Add Index To Autoload」外掛程式
繼續進行「啟用後」的步驟
手動安裝
將「add-index-to-autoload」資料夾上傳至「/wp-content/plugins/」目錄中
透過 WordPress 的「外掛」選單啟用「Add Index To Autoload」
繼續進行「啟用後」的步驟
操作方式
啟用後,您應該會在「工具」>「Add Index To Autoload」下看到一個新的子網頁
建議先備份 WordPress 資料庫(可選擇性)
進入下方的「選項」區段,並點擊新增索引按鈕
點擊「檢查」按鈕:幾秒後您應該會看到成功訊息。
4a. 如果沒有看到,請在 WordPress.org 論壇 上建立一張支援票證
指定 autoload 欄位的週期性檢查(可選擇性)
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
Important: since WordPress 5.3, WordPress already has an index on the autoload field: https://core.trac.wordpress.org/ticket/24044
You don’t need this plugin if you run WP >= 5.3
Add Index To Autoload Plugin
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.
Plugin-Overview
This plugin offers four options:
A one-click check mechanism to check if indexes on the autoload field exist
An option that adds an index to the autoload field
One-click index removal
Adding a simple wp-cronjob, that periodically checks if the index still exists and notifies you, if it doesn’t.
Support
If you encounter any issues, please leave a support ticket on the WordPress.org Forum
Bug reports
Bug reports for this Plugin are welcomed on GitHub.
Please note GitHub is not a support forum, and issues that aren’t properly qualified as bugs will be closed.
From within WordPress
Visit ‘Plugins > Add New’
Search for ‘Add Index To Autoload’
Activate Add Index To Autoload from your Plugins page.
Go to “after activation” below.
Manually
Upload the add-index-to-autoload folder to the /wp-content/plugins/ directory
Activate the Add Index To Autoload through the ‘Plugins’ menu in WordPress
Go to “after activation” below.
How to
After activation you should see a new subpage under Tools > Add Index To Autoload
Backup your WordPress database (optional but recommended!)
Go to the “Options” Section below and click the Add Index button
Click the Check button: You should see a success message after a couple of seconds.
4a. If you don’t, please issue a support ticket on the WordPress.org Forum
Specify a periodic check for the autoload field (optional but recommended!)
