-
Notifications
You must be signed in to change notification settings - Fork 0
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
Updating include does not update output using Eleventy dev server #38
Comments
I'll take a look later today. Just for context, are you using |
I’m just running `—serve`. I can upload a minimal test case if you prefer
|
No, you're good, I was able to get this reproduced, just need to dig a bit more on how to patch this in a way that preserves caching functionality for speed while also clearing things where appropriate. Then I also should write more unit tests that cover this, because right now caching and On a somewhat related note, issues like this will be much easier to triage once I get #21 finished. |
Possible opportunity to handle this upstream so we can do it right since Vento doesn't provide any information about associations of includes to their dependents. The easy way to handle cache during development would be to "clear-all-on-save" but that's not super conservative. I'm going to raise this upstream to see what potential options there are for "smart caching" but in the meantime I can implement a hotfix that clears the cache on every save as a holdover. |
@carpelli A fix for this is out in I've opened a request upstream at: ventojs/vento#78 to see about retrieving associated files from Vento so I can selectively clear the cache instead of wiping everything out. How that resolves will dictate next steps here. Thanks! EDIT 10-24-2024: Because of a mix-up with branching and due to the unfinished nature of |
Steps to reproduce
Run
npx @11ty/eleventy --serve
Modify a Vento template file
include.vto
included by{{ include 'include.vto' }}
Expected behavior
The template is rerendered with the updated included template
Actual behavior
Site is rebuilt but the output doesn't change
Plugin version
3.0.2
Eleventy version
3.0.0
Reduced Test Case URL
No response
Additional information
Basically #34, but this time for the includes
The text was updated successfully, but these errors were encountered: