
前言介紹
- 這款 WordPress 外掛「Amuga Ajax Log」是 2020-09-21 上架。
- 目前有 40 個安裝啟用數。
- 上一次更新是 2020-09-22,距離現在已有 1982 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.8 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
- 有 2 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
asheboro |
外掛標籤
ajax | utilities | admin-ajax | troubleshoot |
內容簡介
現在是時候找出真正造成你的 admin-ajax.php 檔案負載過重的原因了。
與普遍信念相反,對 admin-ajax.php 的負荷不僅僅來自「Heartbeat API」。許多外掛利用 WordPress 內建的 ajax 功能,有時會對網站性能和資源使用造成負面影響。不幸的是,有時很難判斷造成負荷的原因是什麼。
許多部落格和 web 主機建議你安裝外掛來限制對 Heartbeat API 的負荷。雖然這對來自 Heartbeat API 的負荷有很好的效果,但對於使用 admin-ajax 的外掛卻沒有影響。那麼,你如何阻止你看不見的負荷呢?
這就是 Amuga Ajax Log 的用武之地。
Amuga Ajax Log 記錄和追蹤碰到 admin-ajax 的行為。它提供了必要的資訊,例如:
你請求的動作名稱
可能的函式或方法名稱
懷疑的位置
觸發此負荷的頁面
外掛不會追蹤使用者資訊。
Amuga Ajax Log 的目的是協助你更容易地了解是什麼增加了你對 admin-ajax 的使用。外掛將數據記錄到一個純文字檔案或自訂資料庫表格中,並提供易於閱讀的排行榜,顯示哪些行為提高了負荷。
「但繁忙的網站是否會造成大量的追蹤數據呢?」,好奇的當地人問道。
是的,這是真的。這就是為什麼我們不建議長時間啟用外掛。作為故障排除者,你的目標是獲取足夠的資訊來解決問題。憑借排行榜和最近的負荷列表,你有更高的機會追蹤到是什麼造成了你的 admin-ajax.php 重負荷。
Amuga Ajax Log 的另一個不錯的功能是它可以自行清理數據。我們提供了兩個簡單的清理選項。
清除當前的資料庫日誌
從設定頁面中勾選清除當前資料庫日誌的方塊,儲存設定後,Amuga Ajax Log 將清除存儲在資料庫中的所有 admin-ajax 負荷記錄。
停用時刪除所有資料
我們很喜歡提供停用後刪除資料的選項的外掛。Amuga Ajax Log 也一樣。從設定頁面上勾選停用時刪除所有資料的方塊,儲存設定之後,在 Plugins 頁面停用 Amuga Ajax Log 時,該外掛將執行以下操作:
刪除我們的旗標日誌檔案(如果存在)
刪除我們自定義的資料庫表格
從選項表格中刪除我們的數據
一些註解:
請注意,此外掛不會停止 admin-ajax 的負荷,而只是記錄它們並提供相關資訊。你或你的開發人員需要決定接下來該怎麼做。
由於你可以有多個類別共用方法名稱(例如,ILike→Tacos、ILove→Tacos、GiveMe→Tacos),因此可能會有多個位置被列出。
有時,我們無法確定某些負荷的來源。在這些情況下,我們建議使用動作名稱或函式名稱,並使用 SSH 執行 Grep 搜尋,或使用 Notepad++ 等工具進行文本搜尋。
原文外掛簡介
It’s time to find out what is really hitting your admin-ajax.php file so much.
Contrary to popular belief, hits to admin-ajax.php do not only come from the Heartbeat API. Many plugins make use of WordPress’ built-in ajax functionality, sometimes negatively impacting site performance and resource usage. Unfortunately, it’s not always easy to tell what is causing these hits.
Many blogs and web hosts will tell you to install a plugin to limit hits to the Heartbeat API. While this is great for hits coming from the Heartbeat API, it does nothing to affect plugins that use admin-ajax. So how do you stop what you can’t see?
That’s where Amuga Ajax Log comes in.
Amuga Ajax Log tracks and logs actions that hit admin-ajax. It gives you a look at essential data, such as:
Requested action name
Possible function or method name
Suspected location
Page that triggered the hit
The plugin does not track information about the user.
Amuga Ajax Log was built to make it easier to see what is really increasing your admin-ajax usage. The plugin logs the data to a flat file or a custom database table. It also provides an easy to read Leaderboard that shows you which actions are hitting the most.
“But won’t a busy site cause a lot of data to be tracked?” asks curious local man.
Yes, that is true. That is why we don’t recommend leaving the plugin activated for extended periods. As a troubleshooter, your goal with this plugin is to obtain enough information to solve your issue. With the Leaderboard and Recent Hits list, you will have a higher chance of tracking down what is hammering your admin-ajax.php file.
Another nice feature of Amuga Ajax Log is that it can clean up after itself. We’ve provided two easy options for cleaning up data.
Purge Current Database Log
From the Settings page, check the box that says Purge Current Database Log, hit Save, and Amuga Ajax Log will clear all admin-ajax hit records it has stored in the database.
Remove All Data on Deactivation
We are a big fan of plugins that provide an option to remove their data after deactivation. Amuga Ajax Log does the same. From the Settings page, check the box that says Remove All Data on Deactivation, hit Save, and when you deactivate Amuga Ajax Log from the Plugins page, the plugin does the following:
Removes our flag log file if it exists
Removes our custom database table
Removes our data from the options table
A Few Notes:
Keep in mind that this plugin does not stop admin-ajax hits; it only records them and provides information about the hit. It is up to you or your developer to determine what to do next.
Because you can have Classes that share method names (ex. ILike->Tacos, ILove->Tacos, GiveMe->Tacos), it is possible that there will be multiple Locations listed.
Sometimes, we can’t figure out where something is. In those cases, we recommend using the action name or the function name and running a Grep search using SSH, or doing a text search with a tool such as Notepad++.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Amuga Ajax Log」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Autoclear Autoptimize Cache 》Autoptimize 是 WordPress 上一款熱門的性能優化外掛。除了其他功能外,Autoptimize 可以建立和生成已優化資源檔案的快取版本,從而減少頁面加載時間。, 但如...。
PW WooCommerce Exclude Free Shipping 》假設您的客戶在購物車中有以下產品:, , 紙飛機, 撲克牌盒, 一架三角鋼琴, , 您提供「滿 $50 免運費」優惠,但指定某些限制。, 理所當然,運送三角鋼琴的成本...。
Export Plus 》WordPress內建的匯出工具限制您的數據匯出方式,並提供非常有限的選項。這個外掛透過巧妙地使用核取方塊(而非單選框),添加了一個包含更多彈性選項的新匯出...。QuickLogin 》QuickLogin 是一款針對自建 WordPress 網站的外掛,提供類似 Squarespace 的 Esc 鍵偵測功能,用戶可以在觀看網站時按下「Esc」鍵來顯示登錄面板,如果用戶還...。
Dynamic Cart Messages for WooCommerce 》Dynamic Cart Messages 可以讓您在 WooCommerce 網站上,透過在購物車頁面顯示量身打造的訊息,來激勵您的顧客增加您喜好的產品或產品類別的數量或金額,進而...。
WP Utility Script Runner 》有時候你會遇到需要手動執行程式的情況。實際上的邏輯可能只是從查詢生成一個 CSV 檔,或者更改使用者的設定,甚至只是執行一行 SQL。然而在 WordPress 上這...。
Change Titles Case 》此外掛完全免費,不提供專業版本。詳細資訊請參閱專門網站和WordPress插件協助。, 請瀏覽我的網站以查看截圖和更多資訊。, 我創建此外掛的初衷是為了協助轉換...。
Disable All WordPress Updates and Theme Editors 》Disable All WordPress Updates, File Editors and Gutenberg 是一個方便的工具,允許你在 WordPress 上禁用所有類型的自動更新、插件和佈景主題,佈景主題-...。
Page/Post Converter for WPBakery to Elementor 》總結:這個外掛可以讓使用者選擇頁面複製並將 WPBakery 短碼轉換成 Elementor 元素,詳細內容如下:, , 1. 這個外掛可以做什麼?, - 可以讓使用者選擇要複製...。
MyBrain Utilities 》總結:這個外掛是由My Brain設計用於不同網站的各種工具的集合,我們將其發布到WordPress Plugin存儲庫中,認為這也對他人有用。, , 1. HTAccess_Keeper, ...。YM Site Kit 》總結:YM Site Kit 提供一系列小型、實用的工具,旨在使與 WordPress 網站合作更加便利高效。此外採用了開發和管理數十個 WordPress 網站的經驗,包括最常用...。
All-in-One Utilities 》總結:All-in-One Utilities 是一個多功能的外掛,讓管理員可以透過啟用必要功能來簡化他們的 WordPress 網站。以這些主要功能有效地減少網站開銷並管理使用...。WPBackupEssentials 》WPBackupEssentials 讓您可以輕鬆地在幾個簡單的點擊中備份整個 WordPress 網站。, 您可以輕鬆地備份 WordPress 網站檔案和資料庫資訊,因為 WPBackupEssenti...。
Utilitify – Supercharge Your WordPress Site With Powerpack WordPress Utilities 》這是一個簡單而整潔的外掛,可幫助您以非常優雅的方式自定義 WordPress 設定。, 功能, , 👉 404 重新導向 , 解決所有隨機出現在您網站上的 404 鏈接,使用 ...。
SMNTCS Utilities 》這是一個包含自訂程式碼片段的外掛,可以在 WP 管理後臺中隱藏上售廣告。, 目的, , 移除 All in One WP Migration 廣告, 移除 Elementor 廣告, 移除 Jetpack ...。
