Linux 软件免费装
Banner图

Cron Guard

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

标签

cron monitoring cron jobs wp-cron scheduled tasks

下载

1.0.7 1.0.8 1.3.0 1.0.6 1.0.9 1.1.1 1.2.0 1.4.0 1.5.0 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. Multi-Site Management for Agencies Managing cron across dozens of client sites? The Agency Dashboard (Agency and Agency Plus plans) brings every site's cron health onto one screen. Connect each client site with a secure key, and your hub polls them on a schedule and on demand — showing health status, overdue and stalled hooks, the last successful run, and a 7-day uptime trend for each site, with a one-click link into any site's own Cron Guard. Because the hub polls each site over a secure REST endpoint, you still see the truth even when a client's own WP-Cron has stopped — the exact failure you need to catch. Turn on the email digest to get a scheduled summary the moment any client site needs attention, so you don't have to keep the dashboard open. No external service required; your hub is just another WordPress site running Cron Guard. Need something client-facing? Generate white-label reports for any connected site — branded with your logo, agency name, and accent color — viewable on demand and printable straight to PDF from your browser, or emailed to each client automatically every month. Onboarding lots of sites? Bulk-import them by pasting a list, or flip on self-enrollment so each client site registers itself with your hub using a shared token — no copying keys one at a time. Every stored connection key is encrypted at rest with a key derived from your site's secret keys, so a database dump alone never exposes them. 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
  • Agency Dashboard - Monitor cron health across all client sites with per-site uptime trends (Agency & Agency Plus)

升级注意事项:

1.5.0 Security hardening for Pro and Agency plans: validated alert URLs, authenticated AES-256-GCM key encryption, and single-use self-enrollment tokens. Existing keys keep working. After upgrading, re-enable client self-enrollment and generate fresh tokens if you use it. No functional change for free users. 1.4.0 Adds client-site auto-discovery (bulk import + self-enrollment) and encrypts stored connection keys at rest, for Agency and Agency Plus plans. Existing keys migrate automatically. No functional change for free users. 1.3.0 Adds branded, printable white-label client reports (on-demand and monthly email) for Agency and Agency Plus plans. No functional change for free users. 1.2.0 Adds a scheduled email digest of at-risk client sites for Agency and Agency Plus plans. No functional change for free users. 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.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.9 1.0.8 1.0.7 1.0.6 1.0.5 1.0.0