mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 16:45:35 +08:00
split runtime info into runtime preferences
This commit is contained in:
@@ -39,7 +39,7 @@ return [
|
||||
// 详细介绍请参阅:https://php-di.org/doc/performances.html#caching
|
||||
'cache' => [
|
||||
// 是否启用缓存,支持 bool、callable
|
||||
'enable' => fn () => Framework::getInstance()->environment('production'),
|
||||
'enable' => fn () => Framework::getInstance()->runtime_preferences->environment('production'),
|
||||
'namespace' => 'zm',
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user