From 0ef976f964093936a140881b69c5eb4b7b00d78f Mon Sep 17 00:00:00 2001 From: Jeff Stieler Date: Tue, 22 Jan 2019 09:29:46 -0700 Subject: [PATCH] Increase default wc-api timeout to 1 minute. Large datasets may cause responses to take longer than 5 seconds. --- plugins/woocommerce-admin/client/wc-api/constants.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/woocommerce-admin/client/wc-api/constants.js b/plugins/woocommerce-admin/client/wc-api/constants.js index 503f8b72131..94b585332fc 100644 --- a/plugins/woocommerce-admin/client/wc-api/constants.js +++ b/plugins/woocommerce-admin/client/wc-api/constants.js @@ -2,12 +2,12 @@ /** * External dependencies */ -import { SECOND, MINUTE } from '@fresh-data/framework'; +import { MINUTE } from '@fresh-data/framework'; export const NAMESPACE = '/wc/v4'; export const DEFAULT_REQUIREMENT = { - timeout: 5 * SECOND, + timeout: 1 * MINUTE, freshness: 5 * MINUTE, };