You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cron schedules running more often than once every 15 minutes are discouraged. Crons running that frequently can negatively impact the performance of a site.
5
+
]]>
6
+
</standard>
7
+
<code_comparison>
8
+
<codetitle="Valid: Cron schedule is created to run once every hour.">
9
+
<![CDATA[
10
+
function adjust_schedules( $schedules ) {
11
+
$schedules['every_hour'] = array(
12
+
'interval' => <em>HOUR_IN_SECONDS</em>,
13
+
'display' => __( 'Every hour' )
14
+
);
15
+
return $schedules;
16
+
}
17
+
18
+
add_filter(
19
+
'cron_schedules',
20
+
'adjust_schedules'
21
+
);
22
+
]]>
23
+
</code>
24
+
<codetitle="Invalid: Cron schedule is added to run more than once per 15 minutes.">
0 commit comments