We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Docker Compose
主题语言资源在更新主题后缓存不会自动刷新,显示的文字为旧版本语言包。
清除模板缓存
No response
The text was updated successfully, but these errors were encountered:
默认情况下,Thymeleaf 缓存功能是开启的,所以会在解析语言的时候缓存结果。
经过排查,StandardMessageResolver 并没有暴露任何清理缓存的方法,而清理模板缓存知识简单清理 TemplateData 缓存,并不会清理掉 StandardMessageResolver 内的缓存。
综上,我建议清理缓存的时候,直接销毁掉整个 TemplateEngine 是目前最简单粗暴的做法。
/kind bug /area core
https://github.com/thymeleaf/thymeleaf/blob/db314973254ca8d9ee8661cf13c680b93349ee59/lib/thymeleaf/src/main/java/org/thymeleaf/messageresolver/StandardMessageResolver.java#L261
Sorry, something went wrong.
JohnNiang
Successfully merging a pull request may close this issue.
前置条件
系统信息
使用的哪种方式运行?
Docker Compose
发生了什么?
主题语言资源在更新主题后缓存不会自动刷新,显示的文字为旧版本语言包。
复现步骤
清除模板缓存
之后,恢复正常。相关日志输出
附加信息
No response
The text was updated successfully, but these errors were encountered: