PHP 클래스 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.
상속: extends Jetpack_Sync_Module
파일 보기 프로젝트 열기: automattic/jetpack

공개 메소드들

메소드 설명
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 )

비공개 메소드들

메소드 설명
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 )

메소드 상세

clear_status() 공개 메소드

public clear_status ( )

continue_enqueuing() 공개 메소드

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

get_action_name() 공개 메소드

public get_action_name ( $queue_item )

get_status() 공개 메소드

public get_status ( )

init_before_send() 공개 메소드

public init_before_send ( )

init_full_sync_listeners() 공개 메소드

public init_full_sync_listeners ( $callable )

is_finished() 공개 메소드

public is_finished ( )

is_started() 공개 메소드

public is_started ( )

name() 공개 메소드

public name ( )

reset_data() 공개 메소드

public reset_data ( )

start() 공개 메소드

public start ( $module_configs = null )

update_sent_progress_action() 공개 메소드

public update_sent_progress_action ( $actions )