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
- Host: GitHub
- URL: https://github.com/automattic/vip-jetpack-sync-cron
- Owner: Automattic
- Created: 2019-09-12T16:25:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-18T17:37:00.000Z (over 2 years ago)
- Last Synced: 2025-01-30T01:11:58.448Z (3 months ago)
- Topics: vip
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 7
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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';
```