zend-developer-tools icon indicating copy to clipboard operation
zend-developer-tools copied to clipboard

ZendDeveloperTools + cache config

Open Nirzol opened this issue 10 years ago • 5 comments

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

Nirzol avatar Apr 27 '15 11:04 Nirzol

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

FabianKoestring avatar Apr 27 '15 12:04 FabianKoestring

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

Nirzol avatar Apr 27 '15 12:04 Nirzol

As far as i can remember!

So we cannot enabled cache config same time zdt ?

Yes!

FabianKoestring avatar Apr 27 '15 12:04 FabianKoestring

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...

Ocramius avatar Apr 27 '15 12:04 Ocramius

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.

weierophinney avatar Dec 31 '19 22:12 weierophinney