-
Notifications
You must be signed in to change notification settings - Fork 13
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
Enable/disable cache in configuration #62
Comments
I'm open to submitting a PR for this feature 🙂 |
This was suggested before here: #31 But the main problem is will make loops slower:
Without cache, the "show_number.vto" file is loaded and compiled 100 times. The recommended way is to clear the cache manually, after any file change, with |
It's just a nice to have in dev. Running that function manually will be the same effort as any other manual action: restart the server, add that function to a route and refresh a page, etc. if (dev) {
addEventListener("hmr", () => {
env.cache.clear();
});
} This works okay but not when the It's a good point about the loops and performance |
Maybe |
I'd like to control caching through config.
inspiration
this is how I control caching in development in with eta
example interface
a similar api in vento could allow for this
The text was updated successfully, but these errors were encountered: