Commit 217d39a
committed
Cron API: Spawn cron jobs on shutdown hook.
Modifies `wp_cron()` to register the spawning of cron jobs on the `shutdown` hook rather than the `wp_loaded` hook.
The loopback request made while spawning cron jobs is intended to be non-blocking, however in some circumstances that isn't the case and the spawning will increase the time to first byte.
Props westonruter, pmbaldha, mukesh27.
Fixes #63858.
git-svn-id: https://develop.svn.wordpress.org/trunk@60925 602fd350-edb4-49c9-b593-d223f7449a821 parent f96fa7d commit 217d39a
2 files changed
+36
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
972 | 972 | | |
973 | 973 | | |
974 | 974 | | |
975 | | - | |
| 975 | + | |
976 | 976 | | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
984 | 983 | | |
985 | 984 | | |
986 | 985 | | |
987 | 986 | | |
988 | | - | |
989 | | - | |
990 | | - | |
991 | | - | |
| 987 | + | |
992 | 988 | | |
993 | | - | |
994 | | - | |
995 | | - | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
996 | 994 | | |
997 | | - | |
998 | | - | |
999 | 995 | | |
1000 | 996 | | |
1001 | 997 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1330 | 1330 | | |
1331 | 1331 | | |
1332 | 1332 | | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
1333 | 1356 | | |
0 commit comments