Skip to content

Commit

Permalink
added ability to clear template and expression caches in jade configu…
Browse files Browse the repository at this point in the history
…ration
  • Loading branch information
naltatis committed Aug 24, 2013
1 parent f18d1a2 commit 8f51225
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/de/neuland/jade4j/JadeConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,8 @@ public void setCaching(boolean cache) {
}
}

public void clearCache() {
ExpressionHandler.clearCache();
cache.clear();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@ public static String evaluateStringExpression(String expression, JadeModel model
public static void setCache(boolean cache) {
jexl.setCache(cache ? MAX_ENTRIES : 0);
}

public static void clearCache() {
jexl.clearCache();
}
}

0 comments on commit 8f51225

Please sign in to comment.