There is a couple of approaches to disable caching.
1. Set an environment variable (add the following to JVM command line):
-Dpd4ml.cache.enable=false ( the same from Java/JSP code if JVM security policy allows:
System.setProperty("pd4ml.cache.enable","false") )
or via PD4ML API call:
HashMap map = new HashMap();
map.put("pd4ml.cache.enable","false") ;
pd4ml.setDynamicParams(map);2. Another method is to add a random suffix to CSS URL:
(JSP sample)
<%
String suffix = "";
if ( debug ) {
suffix = "?dummy=" + generateRandom();
}
%>
<link rel="stylesheet" type="text/css" href="xstyle.css<%=suffix%>" />