只在生产中启用
This commit is contained in:
parent
c11a861776
commit
8e1f29a373
@ -1,9 +1,11 @@
|
||||
<?php
|
||||
|
||||
$enabled = config('app.env') === 'production';
|
||||
|
||||
return [
|
||||
'cache-prefix' => '',
|
||||
|
||||
'enabled' => env('MODEL_CACHE_ENABLED', true),
|
||||
'enabled' => $enabled,
|
||||
|
||||
'use-database-keying' => env('MODEL_CACHE_USE_DATABASE_KEYING', true),
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user