I have a problem with Vapor template “Leaf”. it rendered html from the wrong leaf file.
such as Acronym.leaf is not called when I requested https://xxx.com/acronyms/1.
But it rendered html from index.leaf instead.
Then ,I tried to stop running the project and restart my project again on the server.
This time when request https://xxx.com/acronyms/1, it work properly. Acronym.leaf is rendered.
But when I requested https://xxx.com,it not rendered html from index.leaf, but Acronym.leaf instead.
Then, I tried to restart running my project on the server again.
This time , it render html from index.leaf when requested https://xxx.com.
but it doesn’t render html from acronym.leaf when requested https://xxx.com/acronyms/1.
Yes you should, since that’s the environment you’re in and things may be relying on it. Hopefully the fix is released soon, otherwise you could create a custom LeafConfig like the Leaf provider does and register that to disable caching. That will also fix the issue until the bug is fixed