laminas / laminas-developer-tools

Module for developer and debug tools for use with laminas-mvc applications.
BSD 3-Clause "New" or "Revised" License
23 stars 13 forks source link

ZendDeveloperTools + cache config #11

Open weierophinney opened 4 years ago

weierophinney commented 4 years ago

Hello

I enabled cache config in application.config.php:

...
        'config_cache_enabled' => true,
        'config_cache_key' => 1,
        'cache_dir' => __DIR__ . '/../data/cache',
...

And I have some errors then :

( ! ) Fatal error: Uncaught exception 'Zend\View\Exception\RuntimeException' with message 'Zend\View\Renderer\PhpRenderer::render: Unable to render template "zend-developer-tools/toolbar/zendframework"; resolver could not resolve to a file' in .../vendor/zendframework/zendframework/library/Zend/View/Renderer/PhpRenderer.php on line 493

( ! ) Zend\View\Exception\RuntimeException: Zend\View\Renderer\PhpRenderer::render: Unable to render template "zend-developer-tools/toolbar/zendframework"; resolver could not resolve to a file in .../vendor/zendframework/zendframework/library/Zend/View/Renderer/PhpRenderer.php on line 493


Originally posted by @Nirzol at https://github.com/zendframework/zend-developer-tools/issues/188

weierophinney commented 4 years ago

There are closures in getServiceConfig(). Means not cachable. Right?


Originally posted by @FabianKoestring at https://github.com/zendframework/zend-developer-tools/issues/188#issuecomment-96622279

weierophinney commented 4 years ago

You mean into zenddeveloperTool? not using factory. So we cannot enabled cache config same time zdt ?


Originally posted by @Nirzol at https://github.com/zendframework/zend-developer-tools/issues/188#issuecomment-96622976

weierophinney commented 4 years ago

As far as i can remember!

So we cannot enabled cache config same time zdt ?

Yes!


Originally posted by @FabianKoestring at https://github.com/zendframework/zend-developer-tools/issues/188#issuecomment-96624345

weierophinney commented 4 years ago

getServiceConfig() is not affected by the closures stuff (not part of cached config).

I'm more puzzled by why the path to the toolbar is broken...


Originally posted by @Ocramius at https://github.com/zendframework/zend-developer-tools/issues/188#issuecomment-96626790