/** * Detect if this retry attempt has already been made. * * @since 2.0.0 * * @return bool */ protected function already_retried() { $log = get_option(self::$retry_option, array()); $key = md5($this->retry_wait_seconds . serialize($this->batch->to_array())); if (isset($log[$key])) { return true; } $log[$key] = microtime(); update_option(self::$retry_option, $log, false); return false; }