public function setSyncClientDefaults() { $this->sender->set_defaults(); Jetpack_Sync_Modules::set_defaults(); $this->sender->set_dequeue_max_bytes(5000000); // process 5MB of items at a time $this->sender->set_sync_wait_time(0); // disable rate limiting }
public function setSyncClientDefaults() { $this->sender->set_defaults(); Jetpack_Sync_Modules::set_defaults(); $this->sender->set_dequeue_max_bytes(5000000); // process 5MB of items at a time $this->sender->set_sync_wait_time(0); // disable rate limiting // don't sync callables or constants every time - slows down tests set_transient(Jetpack_Sync_Module_Callables::CALLABLES_AWAIT_TRANSIENT_NAME, 60); set_transient(Jetpack_Sync_Module_Constants::CONSTANTS_AWAIT_TRANSIENT_NAME, 60); }