Update default conf for cache Doctrine & ZF
parent
ad12486bbb
commit
a7834972a2
|
@ -5,6 +5,7 @@
|
||||||
*
|
*
|
||||||
* @see https://github.com/zendframework/ZFTool
|
* @see https://github.com/zendframework/ZFTool
|
||||||
*/
|
*/
|
||||||
|
$env = getenv('APP_ENV') ?: 'production';
|
||||||
return array(
|
return array(
|
||||||
'modules' => array(
|
'modules' => array(
|
||||||
'DoctrineModule',
|
'DoctrineModule',
|
||||||
|
@ -19,6 +20,12 @@ return array(
|
||||||
),
|
),
|
||||||
'config_glob_paths' => array(
|
'config_glob_paths' => array(
|
||||||
'config/autoload/{,*.}{global,local}.php'
|
'config/autoload/{,*.}{global,local}.php'
|
||||||
)
|
),
|
||||||
|
'config_cache_enabled' => ($env == 'production'),
|
||||||
|
'config_cache_key' => 'c8aaaaa11586f8b1bf5565cc6064e70a', // md5('config_cache_key_monarc')
|
||||||
|
'module_map_cache_enabled' => ($env == 'production'),
|
||||||
|
'module_map_cache_key' => '664579376c4dcdcaa0bcdd0f7e7bf25b', // md5('module_map_cache_key_monarc'),
|
||||||
|
'cache_dir' => 'data/cache/',
|
||||||
|
'check_dependencies' => ($env != 'production'),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
*
|
*
|
||||||
* @see https://github.com/zendframework/ZFTool
|
* @see https://github.com/zendframework/ZFTool
|
||||||
*/
|
*/
|
||||||
|
$env = getenv('APP_ENV') ?: 'production';
|
||||||
return array(
|
return array(
|
||||||
'modules' => array(
|
'modules' => array(
|
||||||
'DoctrineModule',
|
'DoctrineModule',
|
||||||
|
@ -19,6 +20,12 @@ return array(
|
||||||
),
|
),
|
||||||
'config_glob_paths' => array(
|
'config_glob_paths' => array(
|
||||||
'config/autoload/{,*.}{global,local}.php'
|
'config/autoload/{,*.}{global,local}.php'
|
||||||
)
|
),
|
||||||
|
'config_cache_enabled' => ($env == 'production'),
|
||||||
|
'config_cache_key' => 'c8aaaaa11586f8b1bf5565cc6064e70a', // md5('config_cache_key_monarc')
|
||||||
|
'module_map_cache_enabled' => ($env == 'production'),
|
||||||
|
'module_map_cache_key' => '664579376c4dcdcaa0bcdd0f7e7bf25b', // md5('module_map_cache_key_monarc'),
|
||||||
|
'cache_dir' => 'data/cache/',
|
||||||
|
'check_dependencies' => ($env != 'production'),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -12,6 +12,11 @@
|
||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
// DOCTRINE CONF
|
// DOCTRINE CONF
|
||||||
|
'service_manager' => array(
|
||||||
|
'factories' => array(
|
||||||
|
'doctrine.cache.mycache' => 'MonarcCore\Service\DoctrineCacheServiceFactory',
|
||||||
|
),
|
||||||
|
),
|
||||||
'doctrine' => array(
|
'doctrine' => array(
|
||||||
'connection' => array(
|
'connection' => array(
|
||||||
'orm_default' => array(
|
'orm_default' => array(
|
||||||
|
@ -71,9 +76,9 @@ return array(
|
||||||
),
|
),
|
||||||
'configuration' => array(
|
'configuration' => array(
|
||||||
'orm_default' => array(
|
'orm_default' => array(
|
||||||
'metadata_cache' => 'array',
|
'metadata_cache' => 'mycache',
|
||||||
'query_cache' => 'array',
|
'query_cache' => 'mycache',
|
||||||
'result_cache' => 'array',
|
'result_cache' => 'mycache',
|
||||||
'driver' => 'orm_default', // This driver will be defined later
|
'driver' => 'orm_default', // This driver will be defined later
|
||||||
'generate_proxies' => true,
|
'generate_proxies' => true,
|
||||||
'proxy_dir' => 'data/DoctrineORMModule/Proxy',
|
'proxy_dir' => 'data/DoctrineORMModule/Proxy',
|
||||||
|
@ -85,9 +90,9 @@ return array(
|
||||||
'second_level_cache' => array(),
|
'second_level_cache' => array(),
|
||||||
),
|
),
|
||||||
'orm_cli' => array(
|
'orm_cli' => array(
|
||||||
'metadata_cache' => 'array',
|
'metadata_cache' => 'mycache',
|
||||||
'query_cache' => 'array',
|
'query_cache' => 'mycache',
|
||||||
'result_cache' => 'array',
|
'result_cache' => 'mycache',
|
||||||
'driver' => 'orm_cli', // This driver will be defined later
|
'driver' => 'orm_cli', // This driver will be defined later
|
||||||
'generate_proxies' => true,
|
'generate_proxies' => true,
|
||||||
'proxy_dir' => 'data/DoctrineORMModule/Proxy',
|
'proxy_dir' => 'data/DoctrineORMModule/Proxy',
|
||||||
|
|
Loading…
Reference in New Issue