Skip to content

Commit 6ebef9f

Browse files
committed
Docs: Improve the usefulness and accuracy of the file header for wp-cron.php.
Props stevenlinx for the initial patch. Fixes #31401. git-svn-id: https://develop.svn.wordpress.org/trunk@41276 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8ceaf1e commit 6ebef9f

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/wp-cron.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
<?php
22
/**
3-
* WordPress Cron Implementation for hosts, which do not offer CRON or for which
4-
* the user has not set up a CRON job pointing to this file.
3+
* A pseudo-CRON daemon for scheduling WordPress tasks
4+
*
5+
* WP Cron is triggered when the site receives a visit. In the scenario
6+
* where a site may not receive enough visits to execute scheduled tasks
7+
* in a timely manner, this file can be called directly or via a server
8+
* CRON daemon for X number of times.
9+
*
10+
* Defining DISABLE_WP_CRON as true and calling this file directly are
11+
* mutually exclusive and the latter does not rely on the former to work.
512
*
613
* The HTTP request to this file will not slow down the visitor who happens to
714
* visit when the cron job is needed to run.

0 commit comments

Comments
 (0)