/** * <p> * Clears the template cache. * </p> */ public void clearCaches() { if (this.templateCache != null) { this.templateCache.clear(); } }
public void clearAllCaches() { final ICache<TemplateCacheKey, TemplateModel> templateCacheObj = getTemplateCache(); if (templateCacheObj != null) { templateCacheObj.clear(); } final ICache<ExpressionCacheKey, Object> expressionCacheObj = getExpressionCache(); if (expressionCacheObj != null) { expressionCacheObj.clear(); } final List<String> allSpecificCacheNamesObj = getAllSpecificCacheNames(); if (allSpecificCacheNamesObj != null) { for (final String specificCacheName : allSpecificCacheNamesObj) { final ICache<?,?> specificCache = getSpecificCache(specificCacheName); if (specificCache != null) { specificCache.clear(); } } } }
/** * <p> * Clears the template cache. * </p> */ public void clearTemplateCache() { if (this.templateCache != null) { this.templateCache.clear(); } }
/** * <p> * Clears the fragments cache. * </p> */ public void clearFragmentCache() { if (this.fragmentCache != null) { this.fragmentCache.clear(); } }
public void clear() { this.cache.clear(); }
public void clear() { this.cache.clear(); }