Skip to content

Commit dbf27ce

Browse files
committed
Use ORM warmup in roadrunner only
1 parent 1f47e77 commit dbf27ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frameworks/PHP/spiral/app/config/cycle.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Cycle\ORM\SchemaInterface;
66

7+
/** @see \Spiral\Cycle\Config\CycleConfig */
78
return [
89
'schema' => [
910
/**
@@ -47,5 +48,5 @@
4748
/**
4849
* Prepare all internal ORM services (mappers, repositories, typecasters...)
4950
*/
50-
'warmup' => true,
51+
'warmup' => \env('RR_MODE') !== null,
5152
];

0 commit comments

Comments
 (0)