Skip to content

Commit

Permalink
Merge pull request #238 from datopian/bug/page-load-fail-if-wordpress…
Browse files Browse the repository at this point in the history
…-no-response

Fix: Add timeout to the wordpress query if there is no response
  • Loading branch information
shubham-mahajan authored Jun 12, 2022
2 parents f16a8b1 + 4995f23 commit 5b8d53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/wp/cms.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const config = require('../../config')

const wpcom = require('wpcom')(config.get('WP_TOKEN'))
const timeout = config.get('WP_TIMEOUT', 60000)
const timeout = config.get("WP_TIMEOUT") || 30000;

class CmsModel {
constructor() {
Expand Down

0 comments on commit 5b8d53b

Please sign in to comment.