內容簡介
這個外掛允許你掌控 cron 任務的執行。它主要適用於那些因為評論不足而無法確保 wp-cron 頻繁執行的網站,或那些因常規方法執行 cron 而引起競爭條件(race conditions),導致 wp-cron 多次同時執行的網站。它也可以幫助你處理錯過排程的文章。
這個外掛實現了一個秘密參數,只有在此參數存在時才會執行 cron 任務。
限制
為了禁用通過 WordPress 常規方法創建新 cron 進程,此外掛執行了remove_action('sanitize_comment_cookies','wp_cron');指令。如果 wp_cron 被掛鉤在其他動作或直接調用,這可能會引起問題。
外掛標籤
開發者團隊
原文外掛簡介
This plugin allows you to take control over the execution of cron jobs. It’s mainly useful for sites that either don’t get enough comments to ensure a frequent execution of wp-cron or for sites where the execution of cron via regular methods can cause race conditions resulting in multiple execution of wp-cron at the same time. It can also help when you run into posts that missed their schedule.
This plugin implements a secret parameter and ensures that cron jobs are only executed when this parameter is existing.
Limitations
This plugin performs a remove_action( 'sanitize_comment_cookies', 'wp_cron' ); call in order to disable the spawning of new cron processes via the regular WordPress method. If wp_cron is hooked in an other action or called directly this might cause trouble.
