[WordPress] 外掛分享: MultiSite System Cron

首頁外掛目錄 › MultiSite System Cron
WordPress 外掛 MultiSite System Cron 的封面圖片
10+
安裝啟用
★★★★★
5/5 分(2 則評價)
3900 天前
最後更新
問題解決
WordPress 3.3.2+ v1.0 上架:2015-07-14

內容簡介

WordPress Cron 實作需要定期的網頁訪問才能觸發。

如果你不想依賴可能的訪問,或需要更準確的 Cron 請求,設置 Linux crontab 取代 WP-Cron 系統就很容易了。

只需在 wp-config.php 文件中添加常數 DISABLE_WP_CRON 來禁用 WP-Cron,並創建一個新的 crontab 行,使用 wget 或 curl 命令獲取您博客的 wp-cron.php 網址。

但對於 WordPress MultiSite 安裝,您將需要為每個博客創建一行 crontab,如果您有許多博客,維護和配置所有 cron 請求就不簡單了。

此外,有可能會發生重疊請求的風險,可能會影響服務器性能或 WordPress 行為。

這個插件的目的是提供一種僅使用一行 Linux crontab 在 WordPress MultiSite 上實現 Linux cron 請求的方法。

這個唯一的請求指向主要博客的 cron URL,但使用特殊的參數,確保了受控和私有的 cron 請求。

然後,從主要博客執行一個傳播過程,依次調用所有網絡博客(也帶有隱私 URL 參數)。

在這個插件的網絡設置中,你可以設置此進程的頻率,每個博客 cron 調用之間的時間,估計所有進程持續時間以避免重疊,諮詢所有 cron 進程的時間量等。

顯然,此配置取決於您的博客數量、cron 調用的期望頻率和/或服務器性能能力,因此您需要進行一些測試以獲得適當的參數。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「MultiSite System Cron」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The WordPress Cron implementation needs web visits to be triggered regularly.
If you don’t want to depend on the possible visits, or need a more accurate cron requests, it’s easy to setup the Linux crontab to replace the WP-Cron system.
Simply disable the WP-Cron adding the constant DISABLE_WP_CRON to the wp-config.php file, and create a new crontab line with wget or curl commands fetching the wp-cron.php URL of your blog.
But for WordPress MultiSite installs you will need one crontab line for each blog and, if you have many blogs, it is not simple to maintain and configure all the cron calls.
Also, there is a risk to overlap requests, possibly affecting server performance or WordPress behaviour.
The aim of this plugin is to provide a method to implement Linux cron requests for WordPress MultiSite with only one line in the Linux crontab.
This only one request points to the main blog cron URL, but with special arguments, ensuring a controlled and private cron requests.
Then, from the main blog is performed a propagation process, calling one by one all the network blogs (also with privacy URL arguments).
In the network settings of this plugin you can setup the frecuency of this process, the time between each blog cron calls, estimate all the process duration to avoid overlapping, consulting amount of time of all cron processes, etc.
Obviously, this configuration depends of your number of blogs, the desired frecuency of cron calls and/or the performance capabilities of your server, so you will need some testing to achieve the proper parameters.

延伸相關外掛

文章
Filter
Mastodon