Skip to content

Commit dad339b

Browse files
committed
Fix race condition by not caching AstNodes when using eager execution
1 parent 68db685 commit dad339b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/hubspot/jinjava/Jinjava.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public Jinjava(JinjavaConfig globalConfig) {
9797
TreeBuilder.class.getName(),
9898
EagerExtendedSyntaxBuilder.class.getName()
9999
);
100-
// eagerExpConfig.setProperty(ExpressionFactoryImpl.PROP_CACHE_SIZE, "0");
100+
eagerExpConfig.setProperty(ExpressionFactoryImpl.PROP_CACHE_SIZE, "0");
101101

102102
TypeConverter converter = new TruthyTypeConverter();
103103
this.expressionFactory = new ExpressionFactoryImpl(expConfig, converter);

0 commit comments

Comments
 (0)