From 2fe113e606989e3dec86dc7e716833facafe55bc Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Thu, 23 Jan 2020 10:27:12 -0600 Subject: [PATCH 1/2] add new `check_compiled` option --- config/view.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/view.php b/config/view.php index 22b8a18d325..8a651776be5 100644 --- a/config/view.php +++ b/config/view.php @@ -33,4 +33,16 @@ realpath(storage_path('framework/views')) ), + /* + |-------------------------------------------------------------------------- + | Check Compiled Views + |-------------------------------------------------------------------------- + | + | On every request the framework will check to see if a view has expired + | to determine if it needs to be recompiled. If you are in production + | and precompiling your views we can skip this check to save time. + | + */ + 'check_compiled' => env('APP_ENV') !== 'production', + ]; From 678901cc4d2ee139b547375299b43eac19a37674 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Thu, 23 Jan 2020 10:40:45 -0600 Subject: [PATCH 2/2] update name --- config/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/view.php b/config/view.php index 8a651776be5..9b7bddfcc92 100644 --- a/config/view.php +++ b/config/view.php @@ -43,6 +43,6 @@ | and precompiling your views we can skip this check to save time. | */ - 'check_compiled' => env('APP_ENV') !== 'production', + 'expires' => env('APP_ENV') !== 'production', ];