Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZendDeveloperTools + cache config #11

Open
weierophinney opened this issue Dec 31, 2019 · 4 comments
Open

ZendDeveloperTools + cache config #11

weierophinney opened this issue Dec 31, 2019 · 4 comments

Comments

@weierophinney
Copy link
Member

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 zendframework/zend-developer-tools#188

@weierophinney
Copy link
Member Author

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


Originally posted by @FabianKoestring at zendframework/zend-developer-tools#188 (comment)

@weierophinney
Copy link
Member Author

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


Originally posted by @Nirzol at zendframework/zend-developer-tools#188 (comment)

@weierophinney
Copy link
Member Author

As far as i can remember!

So we cannot enabled cache config same time zdt ?

Yes!


Originally posted by @FabianKoestring at zendframework/zend-developer-tools#188 (comment)

@weierophinney
Copy link
Member Author

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 zendframework/zend-developer-tools#188 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant