[WordPress] 外掛分享: Advanced Cron Scheduler for WordPress

WordPress 外掛 Advanced Cron Scheduler for WordPress 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Advanced Cron Scheduler for WordPress」是 2021-03-02 上架。
  • 目前有 200 個安裝啟用數。
  • 上一次更新是 2025-04-29,距離現在已有 4 天。
  • 外掛最低要求 WordPress 6.5 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.1 以上。
  • 有 5 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

infosatech |

外掛標籤

debug | wp cron | scheduler | cron manager | action scheduler |

內容簡介

WordPress中的WP-Cron系統不是一個真正的cron系統,這意味著事件可能不會按照其時間表準確運行,因為該系統依賴於定期訪問網站來觸發計劃的事件。

WP-Cron事件錯過時間表的原因

低流量的網站可能不會足夠觸發事件運行
由插件或佈景主題引起的致命錯誤可能會中斷事件運行
插件或佈景主題可能有意或無意地中斷事件運行
BasicAuth、防火牆或其他訪問限制可能阻止事件運行
您的網站託管或網絡服務器可能會中斷事件運行
啟用了DISABLE_WP_CRON 配置常量,但沒有替代的cron運行器
長時間運行的事件可能會暫時阻塞事件運行
高流量的網站可能會遭受順序處理問題,從而封鎖事件運行

Advanced Cron Scheduler for WordPress插件通過Action Scheduler庫更改了WordPress核心運行cron事件的方式。

Action Scheduler是一個可擴展的,可跟踪的作業隊列,用於在WordPress中背景處理大量的操作。它是專門設計用於WordPress插件的分布式。

Action Scheduler的工作方式是在將來的某個時間觸發一個動作掛鉤。每個掛鉤都可以以唯一的數據進行調度,以允許回調對該數據執行操作。掛鉤還可以安排在一個或多個場合運行。

可以將其視為對do_action()的擴展,它添加了延遲和重複鈎子的能力。

經過戰斗考驗的背景處理

每個月,Action Scheduler處理數百萬的Subscriptions支付,WooCommerce 的Webhook以及其他插件的電子郵件和事件。

在實際網站上,已見到其處理超過50,000個作業的隊列,並且以每小時超過10,000次的持續速率進行資源密集操作,例如處理付款和創建訂單,而不會對正常的站點操作造成負面影響。

這一切都是在插件作者無法控制的基礎設施和WordPress站點上實現的。

如果您的插件需要背景處理,尤其是大量任務的背景處理,Action Scheduler可以幫助您。

了解更多

要了解有關Action Scheduler的操作方式以及如何在插件中使用它的更多信息,請查看ActionScheduler.org上的文檔。

在那裡您會找到:

使用指南:有關安裝和使用Action Scheduler的說明
WP CLI指南:使用WP CLI批量運行Action Scheduler的指令
API參考:所有API函數的完整參考指南
管理指南:通過管理屏幕管理預定的操作指南
大規模背景處理指南:使用默認的WP Cron隊列運行Action Scheduler的指令

支援

通過插件支援論壇,獲取社群支援。

原文外掛簡介

The WP-Cron system in WordPress is not a “real” cron system, which means events may not run exactly according to their schedule because the system relies on regular traffic to the website in order to trigger scheduled events.
Reasons WP-Cron events can miss their schedule

Low traffic websites may not trigger the event runner often enough
A fatal error caused by a plugin or theme may break the event runner
A plugin or theme may intentionally or unintentionally break the event runner
BasicAuth, a firewall, or other access restrictions may block the event runner
A problem with your web hosting or web server may break the event runner
The DISABLE_WP_CRON configuration constant is set but no alternative cron runner has been put in place
Long-running events may temporarily block the event runner
High traffic websites may suffer from sequential processing issues that block the event runner

The Advanced Cron Scheduler for WordPress plugin does alter the way that WordPress core runs cron events using the Action Scheduler Library.
Action Scheduler is a scalable, traceable job queue for background processing large sets of actions in WordPress. It’s specially designed to be distributed in WordPress plugins.
Action Scheduler works by triggering an action hook to run at some time in the future. Each hook can be scheduled with unique data, to allow callbacks to perform operations on that data. The hook can also be scheduled to run on one or more occassions.
Think of it like an extension to do_action() which adds the ability to delay and repeat a hook.
Battle-Tested Background Processing
Every month, Action Scheduler processes millions of payments for Subscriptions, webhooks for WooCommerce, as well as emails and other events for a range of other plugins.
It’s been seen on live sites processing queues in excess of 50,000 jobs and doing resource intensive operations, like processing payments and creating orders, at a sustained rate of over 10,000 / hour without negatively impacting normal site operations.
This is all on infrastructure and WordPress sites outside the control of the plugin author.
If your plugin needs background processing, especially of large sets of tasks, Action Scheduler can help.
Learn More
To learn more about how to Action Scheduler works, and how to use it in your plugin, check out the docs on ActionScheduler.org.
There you will find:

Usage guide: instructions on installing and using Action Scheduler
WP CLI guide: instructions on running Action Scheduler at scale via WP CLI
API Reference: complete reference guide for all API functions
Administration Guide: guide to managing scheduled actions via the administration screen
Guide to Background Processing at Scale: instructions for running Action Scheduler at scale via the default WP Cron queue runner

Support

Community support via the support forums at WordPress.org.

Contribute

Active development of this plugin is handled on GitHub.
Feel free to fork the project on GitHub and submit your contributions via pull request.

Credits
Action Scheduler is developed and maintained by Automattic.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Advanced Cron Scheduler for WordPress」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.0.1 | 1.0.2 | 1.0.4 | 1.0.5 | 1.0.6 | 1.0.7 | 1.0.8 | 1.0.9 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | 1.1.4 | trunk |

延伸相關外掛(你可能也想知道)

  • WP Crontrol 》WP Crontrol 可以讓您查看和控制 WP-Cron 系統中正在發生的事件。從管理界面,您可以:, , 查看所有的 Cron 事件以及它們的參數、循環間隔時間、回撥函數以及...。
  • Query Monitor – The developer tools panel for WordPress 》ministrator user). This cookie can be set by defining QM_AUTH_KEY in your wp-config.php file., To learn more about how to use Query Monitor, please...。
  • P3 (Plugin Performance Profiler) 》這個外掛程式可以創建您 WordPress 網站的外掛程式效能概況,並且藉由測量這些外掛對網站載入時間的影響。通常WordPress網站由於過多或配置不佳的外掛程式而...。
  • Debug Bar 》在管理列上新增一個除錯選單,顯示查詢、快取及其他有用的除錯資訊。, 開發者必備的外掛!, 當啟用WP_DEBUG時,也會追蹤 PHP 的警告和注意事項,使它們更容易...。
  • WP Debugging 》此外掛在啟用時會在 wp-config.php 中設定以下偵錯常數,並在停用時移除它們。任何錯誤都會導致拋出 PHP Exception。偵錯常數請參考 WordPress 的「Debugging...。
  • My WP Customize Admin/Frontend 》這個外掛讓管理者和前端使用者都能輕鬆地進行自訂設定。許多自訂篩選器和操作,還包含開發者工具。, 示範網站在這裡:https://tastewp.com/new/?pre-installe...。
  • reBusted! 》這個外掛可以免去你問「你有清空快取嗎?」的問題。, 這是根據原本由 Paul Clark 開發的外掛更新,以符合今天的 WordPress 和 PHP。, 功能, , 在線上網站上安...。
  • Debug Log Manager 》Debug Log Manager 可以讓您:, , 單擊啟用 WP_DEBUG 以記錄 PHP、數據庫和 JavaScript 錯誤,不需要手動編輯 wp-config.php 文件,完成後再禁用。 , 在自訂...。
  • Code Profiler – WordPress Performance Profiling and Debugging Made Easy 》一個可以測量 WordPress 外掛與佈景主題效能的分析工具。, Code Profiler 可以協助您在 PHP 層面上測量您的外掛與佈景主題的效能,並快速找到任何潛在的 Word...。
  • Plugin Detective – Troubleshooting Conflicts 》Plugin Detective 可以幫助您快速且輕鬆地排除網站上的問題,並找出問題的原因。一旦找到罪犯,您可以快速停用有問題的外掛程式。甚至當您的網站出現白屏、致...。
  • Dashboard Widgets Suite 》插件名稱:Dashboard Widgets Suite(控制面板小工具套裝), , 該外掛提供 1 個插件與 9 個小工具,可簡化您的工作流程並提高工作效率。該套裝小工具包括以下...。
  • which template file 》想知道 WordPress 在前台顯示頁面時使用哪個模板嗎?, 這個外掛可以幫您達成這個目的。您可以在免費的模擬網站上嘗試使用:點此連結 => https://tastewp.c...。
  • Debug This 》Debug This是由友好Macho Themes團隊打造、維護和運營的獨立外掛程式。, 對於管理員、開發人員和支援人員,Debug This提供了大量的有關WordPress安裝的信息,...。
  • Debug Log – Manager Tool 》這是一個簡單的除錯日誌外掛程式,您可以在儀表板中檢查除錯日誌。透過一個點擊,您可以啟用或停用除錯功能(例如 ‘ WP_DEBUG’、‘WP_DEBUG...。
  • Debug 》Debug 可以透過編輯 wp-config.php 檔案,幫助您在 WordPress 網站中找到錯誤。您可以使用 Debug 外掛啟用錯誤報告功能,在 WordPress CMS/網站上啟用任何運...。

文章
Filter
Apply Filters
Mastodon