Skip to content

Commit 8858ee2

Browse files
committed
continue dealing with this damn thing
1 parent f22cb43 commit 8858ee2

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

tests/bootstrap.php

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,14 @@
3838
(new SchemaLoader())->loadInternalFile(__DIR__ . DS . 'schema.php');
3939

4040
// @todo: Remove when support for CakePHP 5.0 is dropped
41-
Cache::setConfig([
42-
'_cake_core_' => [
43-
'engine' => 'File',
44-
'prefix' => 'cake_core_',
45-
'serialize' => true,
46-
'path' => CACHE,
47-
],
48-
]);
41+
if (!Cache::getConfig('_cake_core_')) {
42+
Cache::setConfig([
43+
'_cake_core_' => [
44+
'engine' => 'File',
45+
'prefix' => 'cake_core_',
46+
'serialize' => true,
47+
'path' => CACHE,
48+
],
49+
]);
50+
}
51+

0 commit comments

Comments
 (0)