public/wordpress/wp-content/plugins/backupbuddy/destinations/live/live_periodic.php
/* _request_kick_cron()
	 *
	 * Requests that the Stash API kick our cron along for a certain amount of time.
	 *
	 */
_request_kick_cron()
Requests that the Stash API kick our cron along for a certain amount of time.
_request_kick_cron () Requests that the Stash API kick our cron along for a certain amount of time .
private static function _request_kick_cron() {
		if ( false !== self::_load_state() ) {
			if ( ( time() - self::$_state['stats']['last_kick_request'] ) < self::KICK_REQUEST_MINIMUM_PERIOD ) { 
				return false;
			}
			self::$_state['stats']['last_kick_request'] = time();
			self::$_stateObj->save();
			$settings = pb_backupbuddy::$options['remote_destinations'][ backupbuddy_live::getLiveID() ];
			if ( ! isset( $settings['destination_version'] ) ) {
				$settings['destination_version'] = '2';
			}
			require_once( pb_backupbuddy::plugin_path() . '/destinations/stash' . $settings['destination_version'] . '/init.php' );
			call_user_func_array( array( 'pb_backupbuddy_destination_stash' . $settings['destination_version'], 'cron_kick_api' ), array( $settings ) );
			return true;
		}
		return false;
	}
private static function _request_kick_cron ( ) { if ( false !== self :: _load_state ( ) ) { if ( ( time ( ) - self :: $ _state [ 'stats' ] [ 'last_kick_request' ] ) < self :: KICK_REQUEST_MINIMUM_PERIOD ) { return false ; } self :: $ _state [ 'stats' ] [ 'last_kick_request' ] = time ( ) ; self :: $ _stateObj -> save ( ) ; $ settings = pb_backupbuddy :: $ options [ 'remote_destinations' ] [ backupbuddy_live :: getLiveID ( ) ] ; if ( ! isset ( $ settings [ 'destination_version' ] ) ) { $ settings [ 'destination_version' ] = '2' ; } require_once ( pb_backupbuddy :: plugin_path ( ) . '/destinations/stash' . $ settings [ 'destination_version' ] . '/init.php' ) ; call_user_func_array ( array ( 'pb_backupbuddy_destination_stash' . $ settings [ 'destination_version' ] , 'cron_kick_api' ) , array ( $ settings ) ) ; return true ; } return false ; }
_request_kick_cron()
 Requests that the Stash API kick our cron along for a certain amount of time.
_request_kick_cron () Requests that the Stash API kick our cron along for a certain amount of time .
// Too soon. // Update last kick request time & save. // Request the kicks.