zendframework / zend-developer-tools

Module for developer and debug tools for working with the ZF2 MVC layer.
BSD 3-Clause "New" or "Revised" License
322 stars 130 forks source link

ZendDeveloperTools + cache config #188

Open Nirzol opened 9 years ago

Nirzol commented 9 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

FabianKoestring commented 9 years ago

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

Nirzol commented 9 years ago

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

FabianKoestring commented 9 years ago

As far as i can remember!

So we cannot enabled cache config same time zdt ?

Yes!

Ocramius commented 9 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...

weierophinney commented 4 years ago

This repository has been closed and moved to laminas/laminas-developer-tools; a new issue has been opened at https://github.com/laminas/laminas-developer-tools/issues/11.