[ 
https://issues.apache.org/jira/browse/CAMEL-25991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on CAMEL-25991 started by Claus Ibsen.
-------------------------------------------
> camel-mustache - contentCache=false does not read a changed template again
> --------------------------------------------------------------------------
>
>                 Key: CAMEL-25991
>                 URL: https://issues.apache.org/jira/browse/CAMEL-25991
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 4.18.0, 4.22.0, 4.23.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.24.0
>
>
> The mustache endpoint compiles the template once and keeps it in a field 
> ({{MustacheEndpoint.getOrCreateMustache}}, main e6885df7894d, lines 155-156), 
> whatever {{contentCache}} is. With {{contentCache=false}} a changed template 
> is therefore not read again; only the JMX operation {{clearContentCache}} 
> resets it (lines 85-86).
> Checked on 4.24.0-SNAPSHOT with {{camel run}}: 
> {{mustache:file:reload.mustache?contentCache=false}} rendered "MUSTACHE v1 
> two" after the file had been changed to v2.
> *Proposed change*: with {{contentCache=false}}, compile the template for each 
> exchange, or when the resource has changed.
> _Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to