Skip to content

Commit

Permalink
Run on wp-cron on VIP Go
Browse files Browse the repository at this point in the history
VIP now offloads wp-cron to wp-cli

https://vip.wordpress.com/2017/11/15/a-vip-cron/
  • Loading branch information
joshbetz committed Dec 22, 2017
1 parent 3ef7760 commit d769b63
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions vipgo-helper.php
@@ -1,8 +1,5 @@
<?php

// On VIP Go we're blocking using cron as it creates a mess of cron for large datasets
add_filter( 'msm_sitemap_use_cron_builder', '__return_false', 9999 );

// Add the update cron, since this is necessary for ongoing updates
add_action( 'msm_update_sitemap_for_year_month_date', 'vipgo_schedule_sitemap_update_for_year_month_date', 10, 2 );
add_action( 'msm_vipgo_cron_generate_sitemap_for_year_month_day', 'vipgo_generate_sitemap_for_year_month_day' );
Expand Down

0 comments on commit d769b63

Please sign in to comment.