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.
파일 보기
프로젝트 열기: automattic/jetpack
공개 메소드들
비공개 메소드들
메소드 상세
continue_enqueuing()
공개 메소드
init_before_send()
공개 메소드
init_full_sync_listeners()
공개 메소드
public start ( $module_configs = null ) |
update_sent_progress_action()
공개 메소드