I anwser to mysleft, it can help others, here is the correct configuration:
'caches' => [
'cache1' => [
'adapter' => 'filesystem',
'options' => [
'ttl' => 10800,
'cacheDir' => 'data/cache/cache1',
'dir_level' => 0,
'readable' => false,
'writable' => false,
],
'plugins' => [
[
'name' => 'exception_handler',
'options' => [
'throw_exceptions' => false,
],
],
],
],
'cache2' => [
'adapter' => 'filesystem',
'options' => [
'ttl' => 0,
'cacheDir' => 'data/cache/cache2',
'dir_level' => 0,
'readable' => false,
'writable' => false,
],
'plugins' => [
[
'name' => 'exception_handler',
'options' => [
'throw_exceptions' => false,
],
],
],
],
],