From 81968b9b3284874d807e92d29e872dcd04fa6a20 Mon Sep 17 00:00:00 2001 From: Aaron Francis Date: Sun, 18 Jul 2021 18:49:17 -0500 Subject: [PATCH] Increase the timeout for Jigsaw. Require newest version of Laravel client --- CHANGELOG.md | 5 +++++ composer.json | 2 +- src/Commands/InstallTorchlight.php | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46511f1..6923512 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## Unreleased +## 0.1.2 - 2021-07-18 + +### Changed +- Increase the default timeout to 15 seconds to cover large Jigsaw sites. + ## 0.1.1 - 2021-06-17 ### Changed diff --git a/composer.json b/composer.json index a1d8618..6da2f68 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "laravel" ], "require": { - "torchlight/torchlight-laravel": "^0.4.3", + "torchlight/torchlight-laravel": "^0.4.5", "tightenco/jigsaw": "^1.3.27" }, "require-dev": { diff --git a/src/Commands/InstallTorchlight.php b/src/Commands/InstallTorchlight.php index 0a200b3..7aeddc4 100644 --- a/src/Commands/InstallTorchlight.php +++ b/src/Commands/InstallTorchlight.php @@ -65,6 +65,11 @@ protected function stub() // that you should *not* use the same path that Jigsaw uses, // which is `cache` at the root level of your app. 'cache_path' => 'torchlight_cache', + + // Because of the way Jigsaw works as a static site generator, all the + // code blocks for your entire site will be sent as one request. We + // increase the timeout to 15 seconds to cover for that. + 'request_timeout' => 15 ]; EOT; }