Linux 软件免费装
Banner图

Cron Guard

开发者 chillichalli
oddlogix
更新时间 2026年6月5日 04:14
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

cron monitoring cron jobs wp-cron scheduled tasks

下载

1.0.7 1.0.6 1.0.8 1.0.9 1.1.1 1.0.5

详情介绍:

Cron Guard is a comprehensive monitoring solution for WordPress cron jobs. It helps you detect when cron jobs are failing, identify stalled or missed scheduled tasks, and provides host-specific instructions to fix common issues. Features Premium Features Why You Need This WordPress relies on WP-Cron for critical tasks like: When WP-Cron fails silently, these tasks stop working. Cron Guard gives you visibility into your cron health and alerts you before problems become critical. Supported Hosts The Fix Assistant provides specific setup instructions for:

安装:

  1. Upload the cron-guard folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Navigate to Cron Guard in the admin menu to view your cron health
Setting Up Real Cron (Recommended) For best reliability, disable WordPress's built-in cron and use a real server cron job:
  1. Add to your wp-config.php:
define('DISABLE_WP_CRON', true);
  1. Set up a server cron job (every 5 minutes recommended):
*/5 * * * * wget -q -O /dev/null "https://yoursite.com/wp-cron.php" >/dev/null 2>&1 The Fix Assistant page provides detailed, host-specific instructions for your hosting environment.

屏幕截图:

  • Scheduled Events - Complete list of all cron events with status indicators
  • Fix Assistant - Host-specific setup instructions
  • Logs - Filterable log viewer with event details
  • Settings - Configuration options and premium features

升级注意事项:

1.1.1 Adds the multi-site Agency Dashboard for Agency and Agency Plus plans. No functional change for free users. 1.0.9 Premium licensing/plan updates only. No functional change for free users. 1.0.8 Adds clean auto-switching between the free and premium versions. No functional change for free users. 1.0.7 Internal maintenance: loads the Freemius SDK via the Composer autoloader. No functional change. 1.0.6 Confirmed compatible with WordPress 7.0, plus clearer timezone display across all screens and alerts. 1.0.0 Initial release of Cron Guard.

常见问题:

What is WP-Cron?

WP-Cron is WordPress's built-in task scheduler. Unlike a real server cron, WP-Cron only runs when someone visits your site. This means on low-traffic sites, scheduled tasks may be delayed or missed entirely.

Why are my cron jobs not running?

Common causes include:

  • Low site traffic (WP-Cron needs page visits to trigger)
  • DISABLE_WP_CRON is set but no real cron is configured
  • Hosting blocking loopback requests
  • Server resource limits
  • Plugin conflicts
  • SSL certificate issues
Use the Fix Assistant to diagnose your specific issue.

How do I set up a real cron job?

The Fix Assistant provides step-by-step instructions for your specific hosting provider. Generally, you need to:

  1. Add define('DISABLE_WP_CRON', true); to wp-config.php
  2. Set up a server cron job to hit wp-cron.php every 5 minutes

What's the difference between Warning and Critical status?

  • Warning - Cron hasn't run within your configured threshold (default: 15 minutes)
  • Critical - Cron hasn't run for more than double your threshold (default: 30 minutes)

Can I use external cron services?

Yes! If your host doesn't support real cron, you can use external services like:

The Fix Assistant includes setup instructions for these services.

Does this plugin slow down my site?

No. Cron Guard is designed to be lightweight:

  • Logs are stored in WordPress options (no custom database tables)
  • Rolling log with maximum 500 entries
  • Automatic cleanup of old logs
  • Cron profiling only runs during cron execution

How is this different from WP Crontrol?

They solve different problems and work well side by side. WP Crontrol is a cron management tool for editing, adding, deleting, pausing, and manually running individual cron events. Cron Guard is a cron monitoring and alerting tool that watches your cron health and tells you the moment something breaks. Cron Guard focuses on things WP Crontrol does not do:

  • Proactive alerts (email, webhook, Slack, Discord) when cron stalls or repeatedly misses its schedule
  • A historical rolling log of cron execution events
  • A plain-language health dashboard with Warning/Critical status, built for site owners and agency clients rather than developers
  • An in-dashboard Fix Assistant with host-specific instructions for setting up real cron
  • Verification that real server cron is actually executing
If you need to hand-edit, pause, or create individual cron events, WP Crontrol is the right tool. If you need to know when cron fails and how to fix it, that's Cron Guard. Many sites happily run both.

更新日志:

1.1.1 1.0.9 1.0.8 1.0.7 1.0.6 1.0.5 1.0.0