diff --git a/config/cms.php b/config/cms.php index 5a4421828..0b12b46f2 100644 --- a/config/cms.php +++ b/config/cms.php @@ -329,18 +329,4 @@ 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, - ]; diff --git a/config/testing/cms.php b/config/testing/cms.php index 59e0cb95e..dfea912c7 100644 --- a/config/testing/cms.php +++ b/config/testing/cms.php @@ -109,18 +109,4 @@ 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, - ]; diff --git a/tests/unit/plugins/database/RevisionableModelTest.php b/tests/unit/plugins/database/RevisionableModelTest.php index 792c325d0..770538166 100644 --- a/tests/unit/plugins/database/RevisionableModelTest.php +++ b/tests/unit/plugins/database/RevisionableModelTest.php @@ -12,6 +12,7 @@ class RevisionableModelTest extends PluginTestCase include_once base_path().'/tests/fixtures/plugins/database/tester/models/Post.php'; $this->runPluginRefreshCommand('Database.Tester'); + Model::flushDuplicateCache(); } public function testUpdateNothing()