• eguzmana

    (@eguzmana)


    Over the past month, Cloudflare has been logging more than 2,200 daily connections to /wp-json/jetpack/v4/sync/spawn-sync. After checking the Jetpack activity log, it seems these connections are related to sending information about recent posts or post changes.
    I only have two modules active: Sitemaps and Embedded Shortcodes.
    Is there any way to disable this functionality?

    I’ve already tried adding the following code to functions.php, but there hasn’t been any change.

    Thank you.

    add_filter( ‘jetpack_sync_prevent_sending_post_data’, ‘__return_true’ );
    add_action( ‘jetpack_sync_before_send_data’, ‘__return_false’ );
    add_filter( ‘rest_endpoints’, function( $endpoints ) {
    if ( isset( $endpoints[‘/jetpack/v4/sync’] ) ) {
    unset( $endpoints[‘/jetpack/v4/sync’] );
    }
    return $endpoints;
    } );

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 25 total)
  • Thread Starter eguzmana

    (@eguzmana)

    It seems the changes to functions.php worked, as I’m now seeing only 12 connections since updating the file. I’m wondering if this is the correct approach to further reduce them.

    Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    @eguzmana

    Your snippet looks good, I would only recommend changing the second line to:

    add_filter('jetpack_sync_listener_should_load', '__return_false');

    And see if that further improves things.

    Thread Starter eguzmana

    (@eguzmana)

    Appreciate that, thank you.

    Change made, I’ll return with results.

    Thread Starter eguzmana

    (@eguzmana)

    Hi @bruceallen , seems that make no difference, still see a lot of connections.

    Any other suggestions? thank you!

    Plugin Support Paulina H. (a11n)

    (@pehaa)

    Hi @eguzmana,

    I discussed your case with out developers.

    The requests to?/wp-json/jetpack/v4/sync/spawn-sync?are indeed coming from Jetpack Sync and are?related to post/meta changes. For sites with high editorial activity this is considered normal in general.


    However, if you want to disable Jetpack Sync, instead of using the custom snippet, we can do this for you from our end.
    That said, please keep in mind that disabling Sync will cause many Jetpack features, such as Search, Related Posts etc. to not function properly.


    Another option, that would make sense in your case is to stop syncing post meta updates related to the?_wp_attachment_metadata?post meta.
    Again, that’s something we would need to do on our end.

    Please let us know how you would like to proceed and if you have other questions.

    Thank you!

    Thread Starter eguzmana

    (@eguzmana)

    Hi Paulina (@pehaa),

    Thank you so much for taking the time to delve deeper into this. As you mentioned, it’s a site with a lot of editorial activity, but we’re only using a limited set of modules from the plugin, such as Block, Sitemap, and Embedded shortcodes, while all others are disabled. Since we’re not benefiting from these connections, we see them as unnecessary.

    Your latest suggestion regarding stopping the syncing of post meta updates related to the _wp_attachment_metadata post meta sounds spot on. Could you assist me with implementing that option?

    Thank you again for your help!

    Plugin Support Paulina H. (a11n)

    (@pehaa)

    Hi @eguzmana

    Your latest suggestion regarding stopping the syncing of post meta updates related to the _wp_attachment_metadata post meta sounds spot on. Could you assist me with implementing that option?

    Sure! I have now disabled syncing post meta updates related to the?_wp_attachment_metadata?post meta. Please monitor if that helps and let us know.

    Thank you!

    Thread Starter eguzmana

    (@eguzmana)

    Hi Paulina @pehaa

    Thank you! I’ll wait for more data to be recorded and will get back to you once I have it.

    Thread Starter eguzmana

    (@eguzmana)

    Hello again Paulina @pehaa
    After the change I’m seeing about the same number of connections (https://justpaste.it/cuu7v)
    Thoughts? thank you!

    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @eguzmana

    Thanks for your patience.

    I have raised this issue with our development team, and we’ll let you know as soon as we have an update from them.

    Plugin Support Paulina H. (a11n)

    (@pehaa)

    Hi again,

    We’ve just heard back from our developers.

    Could you check if any of the filters you added earlier are still active? If so, please make sure to remove them all and add this one instead to your functions.php:

    add_filter( 'jetpack_sync_post_meta_whitelist', function( $whitelist ) {
    if ( ( $key = array_search( '_wp_attachment_metadata', $whitelist ) ) !== false) {
    unset( $whitelist[ $key ] );
    }

    return $whitelist;
    }, 1000);

    Please let us know if it helps.

    Thank you!

    Thread Starter eguzmana

    (@eguzmana)

    hello, thank you! those are still active, let me remove them and add this one, thank you!!

    • This reply was modified 2 weeks, 2 days ago by eguzmana.
    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @eguzmana

    Thanks. Please let us know if you see an improvement.

    Thread Starter eguzmana

    (@eguzmana)

    Hello @lastsplash, thank you for the follow up.

    I’m still seeing the same number of requests even after adding the instruction. (https://justpaste.it/h35wz). It occurred to me that I could simply block them via Cloudflare. Could this help? Thank you!

    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @eguzmana

    I am reaching out to our development team to see if they have additional suggestions. For now I wouldn’t recommend blocking the requests via Cloudflare.

Viewing 15 replies - 1 through 15 (of 25 total)
  • You must be logged in to reply to this topic.