Skip to content

Commit 4921974

Browse files
davidswordGaryJones
authored andcommitted
VIP-Go: change cron interval min value interval
VIP's cron setup https://wpvip.com/blog/wordpress-cron/ https://docs.wpvip.com/wordpress-on-vip/cron-control/ Can handle frequent heavy cron schedules. Increase job frequency does not equate to slower site performance as the jobs are run async on dedicated batch containers, not front end requests.
1 parent 7ed6c5d commit 4921974

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

WordPress-VIP-Go/ruleset.xml

+11
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,12 @@
232232
<rule ref="WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn">
233233
<severity>3</severity>
234234
</rule>
235+
<rule ref="WordPress.WP.CronInterval">
236+
<!-- cron runs async on VIP's batch containers, so high frequency schedules will not negatively impact performance. Cron runner polling interval is 60s, so make that the min -->
237+
<properties>
238+
<property name="min_interval" value="60"/>
239+
</properties>
240+
</rule>
235241

236242
<!-- Silence is golden, these don't affect us on VIP Go -->
237243
<rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable">
@@ -254,4 +260,9 @@
254260
<rule ref="WordPress.Security.EscapeOutput.ExceptionNotEscaped">
255261
<severity>0</severity>
256262
</rule>
263+
<rule ref="WordPress.WP.CronInterval.CronSchedulesInterval">
264+
<!-- VIP's cron infrastructure can handle frequent and heavy crons, lower schedule intervals will not slow down the performance of the site -->
265+
<severity>0</severity>
266+
</rule>
267+
257268
</ruleset>

0 commit comments

Comments
 (0)