PHP Class Jetpack_Sync_Module_Full_Sync, jetpack

This class, and its related class Jetpack_Sync_Module, contain a few non-obvious optimisations that should be explained: - we fire an action called jetpack_full_sync_start so that WPCOM can erase the contents of the cached database - for each object type, we page through the object IDs and enqueue them by firing some monitored actions - we load the full objects for those IDs in chunks of Jetpack_Sync_Module::ARRAY_CHUNK_SIZE (to reduce the number of MySQL calls) - we fire a trigger for the entire array which the Jetpack_Sync_Listener then serializes and queues.
Inheritance: extends Jetpack_Sync_Module
Datei anzeigen Open project: automattic/jetpack

Public Methods

Method Description
clear_status ( )
continue_enqueuing ( $configs = null, $enqueue_status = null )
get_action_name ( $queue_item )
get_status ( )
init_before_send ( )
init_full_sync_listeners ( $callable )
is_finished ( )
is_started ( )
name ( )
reset_data ( )
start ( $module_configs = null )
update_sent_progress_action ( $actions )

Private Methods

Method Description
get_config ( )
get_enqueue_status ( )
get_status_option ( $name, $default = null )
read_option ( $name, $default = null )
set_config ( $config )
set_enqueue_status ( $new_status )
update_status_option ( $name, $value, $autoload = false )
write_option ( $name, $value )

Method Details

clear_status() public method

public clear_status ( )

continue_enqueuing() public method

public continue_enqueuing ( $configs = null, $enqueue_status = null )

get_action_name() public method

public get_action_name ( $queue_item )

get_status() public method

public get_status ( )

init_before_send() public method

public init_before_send ( )

init_full_sync_listeners() public method

public init_full_sync_listeners ( $callable )

is_finished() public method

public is_finished ( )

is_started() public method

public is_started ( )

name() public method

public name ( )

reset_data() public method

public reset_data ( )

start() public method

public start ( $module_configs = null )

update_sent_progress_action() public method

public update_sent_progress_action ( $actions )