public/wordpress/wp-content/plugins/backupbuddy/destinations/live/live_periodic.php
/* reset_send_attempts()
	 *
	 * Resets the send attempt counter for all files back to zero. For debugging.
	 *
	 */
reset_send_attempts()
Resets the send attempt counter for all files back to zero. For debugging.
reset_send_attempts () Resets the send attempt counter for all files back to zero . For debugging .
public static function reset_send_attempts() {
		pb_backupbuddy::status( 'details', 'About to reset send attempt counter for all catalog files.' );
		if ( false === self::_load_catalog() ) {
			return false;
		}
		if ( false === self::_load_state() ) {
			return false;
		}
		foreach( self::$_catalog as $signatureFile => &$signatureDetails ) {
			if ( isset( $signatureDetails['t'] ) ) {
				unset( $signatureDetails['t'] );
			}
		}
		self::$_state['stats']['recent_send_fails'] = 0;
		self::$_state['stats']['last_send_fail'] = 0;
		self::$_state['stats']['last_send_fail_file'] ='';
		self::$_catalogObj->save();
		self::$_stateObj->save();
		pb_backupbuddy::status( 'details', 'Finished resetting send attempt counter for all catalog files.' );
		return true;
	}
public static function reset_send_attempts ( ) { pb_backupbuddy :: status ( 'details' , 'About to reset send attempt counter for all catalog files.' ) ; if ( false === self :: _load_catalog ( ) ) { return false ; } if ( false === self :: _load_state ( ) ) { return false ; } foreach ( self :: $ _catalog as $ signatureFile => & $ signatureDetails ) { if ( isset ( $ signatureDetails [ 't' ] ) ) { unset ( $ signatureDetails [ 't' ] ) ; } } self :: $ _state [ 'stats' ] [ 'recent_send_fails' ] = 0 ; self :: $ _state [ 'stats' ] [ 'last_send_fail' ] = 0 ; self :: $ _state [ 'stats' ] [ 'last_send_fail_file' ] = '' ; self :: $ _catalogObj -> save ( ) ; self :: $ _stateObj -> save ( ) ; pb_backupbuddy :: status ( 'details' , 'Finished resetting send attempt counter for all catalog files.' ) ; return true ; }
reset_send_attempts()
 Resets the send attempt counter for all files back to zero.
reset_send_attempts () Resets the send attempt counter for all files back to zero .