From d0d45f839cb1f7072c99fbe49b6c0d83790b4c76 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Wed, 15 Feb 2017 08:12:25 +1100 Subject: [PATCH] Disable db memory cache for tests Refs https://github.com/octobercms/library/pull/253 --- config/cms.php | 1 - config/testing/cms.php | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/config/cms.php b/config/cms.php index 20a33f980..5a4421828 100644 --- a/config/cms.php +++ b/config/cms.php @@ -329,7 +329,6 @@ return [ 'forceBytecodeInvalidation' => true, - /* |-------------------------------------------------------------------------- | Duplicate database query cache diff --git a/config/testing/cms.php b/config/testing/cms.php index dfea912c7..59e0cb95e 100644 --- a/config/testing/cms.php +++ b/config/testing/cms.php @@ -109,4 +109,18 @@ return [ 'themesPathLocal' => base_path('tests/fixtures/themes'), + /* + |-------------------------------------------------------------------------- + | 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' => false, + ];