I wanted Nette to give a try, but after searching and googling more than an hour for a really simple question I'm quite disappointed.
How can I disable cache during development?
Tips here are outdated or didn't work:
Thanks, but exactly this didn't work for me.
Are we talking about this config file where the
should be set?
parameters: application: errorPresenter: Error mapping: *: App\*Module\Presenters\*Presenter session: expiration: 14 days di: export: parameters: no tags: no services: cache.storage: Nette\Caching\Storages\DevNullStorage - App\Router\RouterFactory::createRouter
Doesn't work, cache files are still generated. Edits in latte files aren't
visible until I clear the
Last edited by tebe (2021-06-26 14:34)
- Marek Bartoš
- Nette Blogger | 692
Latte and DI have separate caches, unrelated to nette/caching. While latte cache can be disabled, I wouldn't recommend it because it's quite slow. You can instead enable debug mode with which cache is reloaded when latte file changes.
Here is how you can enable debug mode:
Last edited by Marek Bartoš (2021-06-26 14:45)