Skip to content

Commit

Permalink
Remove template engine after upgrading theme
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnNiang committed Nov 20, 2024
1 parent 7cef55b commit 2729791
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,7 @@ public ISpringWebFluxTemplateEngine getTemplateEngine(ThemeContext theme) {

public Mono<Void> clearCache(String themeName) {
return themeResolver.getThemeContext(themeName)
.doOnNext(themeContext -> {
CacheKey cacheKey = buildCacheKey(themeContext);
TemplateEngine templateEngine =
(TemplateEngine) engineCache.get(cacheKey);
templateEngine.clearTemplateCache();
})
.doOnNext(themeContext -> engineCache.remove(buildCacheKey(themeContext)))
.then();
}

Expand Down

0 comments on commit 2729791

Please sign in to comment.