From d19f0a1229f131f6b989df721176b7e4054644a8 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sat, 11 Feb 2017 08:18:42 +1100 Subject: [PATCH] Add config for duplicate database query cache Refs https://github.com/octobercms/library/pull/253 --- config/cms.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/config/cms.php b/config/cms.php index 07f35f7bb..20a33f980 100644 --- a/config/cms.php +++ b/config/cms.php @@ -328,4 +328,20 @@ return [ */ 'forceBytecodeInvalidation' => true, + + + /* + |-------------------------------------------------------------------------- + | Duplicate database query cache + |-------------------------------------------------------------------------- + | + | If the caching is enabled, database queries with identical statements will + | have the results stored in memory across the same request. This increases + | performance for smaller more frequent queries but may lower performance + | for queries that return a large number of records. + | + */ + + 'enableDuplicateQueryCache' => true, + ];