Title: Disable Sync
Last modified: November 7, 2016

---

# Disable Sync

 *  [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/disable-sync/)
 * How can we disable the Jetpack Sync cronjobs? It’s hammering our database and
   spamming our logs.

Viewing 13 replies - 1 through 13 (of 13 total)

 *  [Luke Cavanagh](https://wordpress.org/support/users/lukecavanagh/)
 * (@lukecavanagh)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/disable-sync/#post-8407515)
 * [@tillkruess](https://wordpress.org/support/users/tillkruess/)
 * [https://wordpress.org/support/topic/change-jetpack-cron-schedule/](https://wordpress.org/support/topic/change-jetpack-cron-schedule/)
 *  Thread Starter [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/disable-sync/#post-8407521)
 * Sorry, that seems to be outdated and doesn’t say how to disable crons. I’ve got
   dozens of Jetpack cron jobs running: [https://cloudup.com/cJrNKBLP9gJ](https://cloudup.com/cJrNKBLP9gJ)
 *  [Luke Cavanagh](https://wordpress.org/support/users/lukecavanagh/)
 * (@lukecavanagh)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/disable-sync/#post-8407538)
 * [@tillkruess](https://wordpress.org/support/users/tillkruess/)
 * [https://codex.wordpress.org/Editing_wp-config.php#Disable_Cron_and_Cron_Timeout](https://codex.wordpress.org/Editing_wp-config.php#Disable_Cron_and_Cron_Timeout)
   
   [https://wordpress.org/plugins/advanced-cron-manager/](https://wordpress.org/plugins/advanced-cron-manager/)
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [9 years, 9 months ago](https://wordpress.org/support/topic/disable-sync/#post-8407690)
 * [@tillkruess](https://wordpress.org/support/users/tillkruess/) This discussion
   should give you some possible alternatives:
    [https://github.com/Automattic/jetpack/issues/5513](https://github.com/Automattic/jetpack/issues/5513)
 * You can use the filters I posted there to get more control over things. Could
   you also [let met know your site URL](http://jetpack.com/contact-support/), so
   I can take a closer look as to what could cause the sync jobs to get stuck like
   this?
 * Thanks!
 *  Thread Starter [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/disable-sync/#post-8408134)
 * [@jeherve](https://wordpress.org/support/users/jeherve/) The site’s domain is`
   laylamartin.com`.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [9 years, 9 months ago](https://wordpress.org/support/topic/disable-sync/#post-8409443)
 * Thanks! I see you also provided details on the GitHub issue; thanks a lot! We’ll
   look into this to try to understand why the sync jobs seem to get stuck on your
   site, thus adding up on your site instead of just following each other.
 * We’ll update the issue as soon as we make progress on this!
 *  [rohitmanglik](https://wordpress.org/support/users/rohitmanglik/)
 * (@rohitmanglik)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/disable-sync/#post-8672785)
 * Hi,
 * I am not a coder so I tested whatever code I was able to find online in functions.
   php, still I can see both jobs run every minute.
 * I copied following code:
 *     ```
       add_filter( 'jetpack_sync_listener_should_load', '__return_false' );
       add_filter( 'jetpack_sync_sender_should_load', '__return_false' );
       add_filter( 'jetpack_sync_incremental_sync_interval', function() { return 'daily'; } );
       add_filter( 'jetpack_sync_full_sync_interval', function() { return 'daily'; } );
       add_filter('schedule_event', function ($event) {
           return strpos($event->hook, 'jetpack_sync_') === 0 ? false : $event;
       });
   
       function jp_support_5513_sync_schedule( $schedules ) {
           if ( ! isset( $schedules['10min'] ) ) {
               $schedules['100min'] = array(
                   'interval' => 100 * MINUTE_IN_SECONDS,
                   'display' => __( 'Every 100 minutes' ),
               );
           }
           return $schedules;
       }
       add_filter( 'cron_schedules', 'jp_support_5513_sync_schedule' );
   
       function __return_jp_support_5513_10_min() {
           return '100min';
       }
       add_filter( 'jetpack_sync_incremental_sync_interval', '__return_jp_support_5513_10_min' );
       add_filter( 'jetpack_sync_full_sync_interval', '__return_jp_support_5513_10_min' );
       ```
   
 * Nothing seems to work 🙁
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [9 years, 7 months ago](https://wordpress.org/support/topic/disable-sync/#post-8678986)
 * [@rohitmanglik](https://wordpress.org/support/users/rohitmanglik/) Could you 
   try to update to the most recent version of Jetpack? We’ve made several changes
   to Sync in the past few releases, and we’ve changed the Sync frequency as well.
 *  [rohitmanglik](https://wordpress.org/support/users/rohitmanglik/)
 * (@rohitmanglik)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/disable-sync/#post-8679192)
 * Hi [@jeherve](https://wordpress.org/support/users/jeherve/)
 * I am using latest version of Jetpack (4.5). [http://pasteboard.co/ooBlFcaLH.png](http://pasteboard.co/ooBlFcaLH.png)
 * I also tried to delete the event using WP Crontrol but I am not able to delete
   Jetpack jobs as well. [http://pasteboard.co/ooxBbF84S.png](http://pasteboard.co/ooxBbF84S.png)
 * Can you please help with some temporary fix to disable them.
 * Thanks
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [9 years, 7 months ago](https://wordpress.org/support/topic/disable-sync/#post-8679267)
 * [@rohitmanglik](https://wordpress.org/support/users/rohitmanglik/) The screenshot
   above shows that sync happens every 5 minutes now; we’ve also made sure it doesn’t
   block other jobs, get stuck, or take too long, so it should really be okay out
   of the box right now.
 * If you’d still prefer to skip using Cron for sync, you can use the following:
 * `add_filter( 'pre_option_jetpack_sync_settings_sync_via_cron', '__return_zero');`
 *  [rohitmanglik](https://wordpress.org/support/users/rohitmanglik/)
 * (@rohitmanglik)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/disable-sync/#post-8679364)
 * [@jeherve](https://wordpress.org/support/users/jeherve/)
 * Thanks for fast response.
 * This is a screenshot of high CPU Usage: [http://pasteboard.co/opwaPIK04.png](http://pasteboard.co/opwaPIK04.png)
   because of Jetpack.
 * Also, the code given by you is also not working: [http://pasteboard.co/opAmNTeOd.png](http://pasteboard.co/opAmNTeOd.png)–
   main site screenshot. I waited for 5 mins after pasting code in functions.php
   in main site.
 * Please note that Jetpack is Network Wide active.
 * Thanks
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [9 years, 7 months ago](https://wordpress.org/support/topic/disable-sync/#post-8679538)
 * Could you let me know where you added the code snippet I posted earlier?
 * If this keeps happening, do you think you could contact us [via this contact form](http://jetpack.com/contact-support/)
   and mention this thread so we can run more tests with you?
 * Thanks!
 *  [rohitmanglik](https://wordpress.org/support/users/rohitmanglik/)
 * (@rohitmanglik)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/disable-sync/#post-8679579)
 * Hi [@jeherve](https://wordpress.org/support/users/jeherve/)
 * I added it in functions.php in child theme.
 *  `bitnami@wordpress-2-vm:/opt/bitnami/apps/wordpress/htdocs/wp-content/themes/
   eduma-child$ tail -f functions.php
    ‘jee-advanced–menu’ => __( ‘JEE Advanced 
   Menu’, ‘eduma’ ) ) ); }
 *  add_action( ‘init’, ‘register_my_menus’ );
 *  add_filter( ‘pre_option_jetpack_sync_settings_sync_via_cron’, ‘__return_zero’);
 *  ?>`
 * Yes, I started a support thread for this.[#3016173].

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Disable Sync’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [cron](https://wordpress.org/support/topic-tag/cron/)

 * 13 replies
 * 4 participants
 * Last reply from: [rohitmanglik](https://wordpress.org/support/users/rohitmanglik/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/disable-sync/#post-8679579)
 * Status: not resolved