跳到内容

WP Crontrol Hours

v2.1.0

Tessa (they/them), AuRise Creative · 2022年11月8日 上架

Take control of your CRON jobs by restricting them to your website's low traffic hours.

正在使用
40+
评分
暂无
累计下载
2,354
最近更新
2024年12月2日
需要 WordPress 5.8+已测试到 6.7.12PHP 5.6.20+

截图

Plugin settings screen
Plugin settings screen
Plugin status screen where you can see the calculated duration of the window you set, the CRON schedules and hooks registered on your website
Plugin status screen where you can see the calculated duration of the window you set, the CRON schedules and hooks registered on your website
Update Hours screen where you can perform a dry run of what events would be modified or manually run the event now
Update Hours screen where you can perform a dry run of what events would be modified or manually run the event now
An example of a dry run and what the output looks like
An example of a dry run and what the output looks like
An example of a real run and what the output looks like
An example of a real run and what the output looks like

Take control of your CRON jobs by restricting them to your website’s low traffic hours. From the admin screen, you can:

  • Specify a daily window of when recurring CRON events should be triggered.
  • Optionally limit events that run multiple times a day to only once a day.
  • Optionally restrict events that run multiple times a day to only during your off-hours.
  • Target specific schedules, including custom ones created by other plugins.
  • Exclude specific CRON hooks from being affected

Benefits

Restricting your recurring CRON events to only run after hours helps with two (2) things:

  1. Automatic updates for WordPress core, plugins, and themes are prevented from running during your highest-traffic times so users aren’t shown a maintenance page when it’s the most visible.
  2. Less stress is placed on your server when automatic maintenance occurs during low traffic times.

Ensuring CRON Events Always Run

WordPress CRON is based on traffic, which means if your site does not see a lot of traffic, CRON events may not be triggered at the time that they are scheduled. Limiting your website’s CRON events to off-hours while also depending on site traffic to trigger them may not produce the intended results. There are two (2) solutions I recommend:

  1. Use Server CRON. It is recommended in the WordPress developer resources to set up your system’s task scheduler to run on the desired intervals and to use that to make a web request to wp-cron.php. View WordPress Documentation.
  2. Use Cron-Job.org. If you can’t set up your system’s task scheduler, I recommend outsourcing that job to cron-job.org to automatically ping your website’s wp-cron.php file. It is a free service from the German-based developers. Go to Cron-Job.org.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums