From 88c1277461c84c371fa5a5f1a9a1d89b12fcff74 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Wed, 27 Dec 2017 10:44:41 -0600 Subject: [PATCH] Add cache option in repository layer --- config/repository.php | 2 +- env.php.example | 1 + modules/Installer/Resources/views/stubs/env.blade.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/repository.php b/config/repository.php index 3bf9b050..4e403514 100644 --- a/config/repository.php +++ b/config/repository.php @@ -52,7 +52,7 @@ return [ | Enable or disable cache | */ - 'enabled' => true, + 'enabled' => env('CACHE_ENABLED', false), /* |-------------------------------------------------------------------------- diff --git a/env.php.example b/env.php.example index da0de862..6a6349b4 100644 --- a/env.php.example +++ b/env.php.example @@ -40,6 +40,7 @@ MAIL_ENCRYPTION=tls MAIL_USERNAME= MAIL_PASSWORD= +CACHE_ENABLED=false CACHE_DRIVER=array CACHE_PREFIX= diff --git a/modules/Installer/Resources/views/stubs/env.blade.php b/modules/Installer/Resources/views/stubs/env.blade.php index e83f1f89..111c8405 100644 --- a/modules/Installer/Resources/views/stubs/env.blade.php +++ b/modules/Installer/Resources/views/stubs/env.blade.php @@ -36,6 +36,7 @@ MAIL_ENCRYPTION=tls MAIL_USERNAME= MAIL_PASSWORD= +CACHE_ENABLED=false CACHE_DRIVER={!! $CACHE_DRIVER !!} CACHE_PREFIX=phpvms