Hi, I suggest to add a method to allow to clear the cache owned by each Type in org.apache.velocity.util.DuckType. This cache causes us some memory leak problems, because we are reloading classes at runtime, causing it to grow indefinitely while preventing "unloaded" classes to be garbage collected.
Since I'm not sure how to submit a patch to velocity, I submitted this PR <https://github.com/apache/velocity-engine/pull/6> a while ago. It would be great if a dev could check it out. Actually, I wonder if this type of cache should be improved so it can be configured by the developer ? It could be interesting at least to limit the number of objects held by the cache. Thanks & best regards, Cédric