An open API service indexing awesome lists of open source software.

https://github.com/automattic/vip-jetpack-sync-cron

A plugin to offload Jetpack Sync activity to cron
https://github.com/automattic/vip-jetpack-sync-cron

vip

Last synced: 3 months ago
JSON representation

A plugin to offload Jetpack Sync activity to cron

Awesome Lists containing this project

README

        

# VIP Jetpack Sync Cron
Note: As of Jetpack 11.2+, the dedicated sync option is available for usage instead. This plugin will bail early if Jetpack has dedicated sync enabled.

By default, Jetpack Sync will sometimes attempt to piggyback on various cron or API requests - causing slowdowns on the shutdown hook. This plugin modifies that behaviour and ensures that Jetpack only syncs on the dedicated cron task.

## Installation

### Option One: Normal Plugin

Add the `vip-jetpack-sync-cron` plugin folder in your `/plugins` directory. Then load the plugin either in your theme or in the `plugin-loader.php` client mu plugin with a call like this:

```
wpcom_vip_load_plugin( 'vip-jetpack-sync-cron' );
```

### Option Two: MU Plugin

Add the `vip-jetpack-sync-cron` plugin folder to your `/client-mu-plugins` directory. Then load the plugin in the `plugin-loader.php` file with a call like this:

```
require_once WPCOM_VIP_CLIENT_MU_PLUGIN_DIR . '/vip-jetpack-sync-cron/vip-jetpack-sync-cron.php';
```