phax / ph-schematron

Java Schematron library that supports XSLT and native application
Apache License 2.0
116 stars 36 forks source link

what should i do to update the s_aCache #109

Closed wahowaho closed 4 years ago

wahowaho commented 4 years ago

image s_aCache has cached file.sch ,but content of this file is changed, i want to update the cacheMap ,what shoud i do

_ How about || mbForceCacheResult
SchematronProviderXSLTFromSCH aProvider = s_aCache.get (sCacheKey); if (aProvider == null || m_bForceCacheResult) { // Create new object and put in cache aProvider = createSchematronXSLTProvider (aSchematronResource, aTransformerCustomizer); if (aProvider != null) s_aCache.put (sCacheKey, aProvider); }

phax commented 4 years ago

Sorry for the delay. Finally a clearCache is here. Will be part of the 5.6.5 release.