Skip to content

Instantly share code, notes, and snippets.

@chrisdavidmiles
Created July 5, 2017 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisdavidmiles/8187743ae20c90dffc3bfc5a230929f2 to your computer and use it in GitHub Desktop.
Save chrisdavidmiles/8187743ae20c90dffc3bfc5a230929f2 to your computer and use it in GitHub Desktop.
Reduce Jetpack wp-cron usage
add_filter( 'jetpack_sync_incremental_sync_interval', function() { return 'hourly'; } );
add_filter( 'jetpack_sync_full_sync_interval', function() { return 'daily'; } );
@chrisdavidmiles
Copy link
Author

This modifies the Jetpack cron schedule to reduce its cron load. Normally Jetpack syncs every 5 minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment