File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 221
221
notify => Exec[' nginx-reload' ],
222
222
}
223
223
}
224
+
225
+ $cron_minute = fqdn_rand(60, " wordpress-cron-${title} -minute" )
226
+ $cron_second = fqdn_rand(60, " wordpress-cron-${title} -second" )
227
+ systemd::timer { "wordpress-cron-${title}" :
228
+ ensure => present ,
229
+ description => " Run WordPress cron jobs for ${host}${path} " ,
230
+ user => ' root' ,
231
+ # -k since the certs we use only contain the node FQDN, not the
232
+ # sites themselves. this is over localhost so it should be safe
233
+ command => " /usr/bin/curl https://${host}${path} wp-cron.php -k --connect-to ::localhost" ,
234
+ interval => [" OnCalendar=*-*-* *:${cron_minute} :${cron_second} " ],
235
+ }
224
236
}
Original file line number Diff line number Diff line change 1
1
< ?php
2
2
define( 'AUTOMATIC_UPDATER_DISABLED', <%= @version ? 'true' : 'false' %> );
3
+ define( 'DISABLE_WP_CRON', true );
You can’t perform that action at this time.
0 commit comments