title: How can we set template cache to never reload in apache free marker?
body: <p>From the <a href="https://freemarker.apache.org/docs/pgui_config_templateloading.html#pgui_config_templateloading_caching" rel="nofollow noreferrer">documentation</a>, </p>
  
  <blockquote>
    <p>If you change the template file, then FreeMarker will re-load and re-parse the template automatically when you get the template next time. However, since always checking for changes can be burden for a system that processes lot of templates, there is a Configuration level setting called "update delay" (defaults is 5 seconds). Until this much time has elapsed since the last checking for a newer version, FreeMarker will not check again if the template was changed. If you want to see the changes without delay, set this setting to 0. Note that some template loaders won't see that a template was changed because of the underlying storage mechanism doesn't support that; for example, class-loader based template loaders may have this problem.</p>
  </blockquote>
  
  <p>Can anyone help? I am using spring boot.</p>
  
  <pre><code>String jsonMessage = processTemplateIntoString(configuration.getTemplate("customjsontemplate.ftl"), dataMap);
  </code></pre>