Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26215

    I need disable the CSS and Images cache.

    Can it be done?

    #27348

    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:

    [language=java:1kphbjqm]HashMap map = new HashMap();
    map.put(“pd4ml.cache.enable”,”false”) ;
    pd4ml.setDynamicParams(map);[/language:1kphbjqm]

    2. Another method is to add a random suffix to CSS URL:

    (JSP sample)

    [language=xml:1kphbjqm]<%
    String suffix = “”;
    if ( debug ) {
    suffix = “?dummy=” + generateRandom();
    }

    %>
    <link rel="stylesheet" type="text/css" href="xstyle.css” />[/language:1kphbjqm]

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Deployment / Configuration issues’ is closed to new topics and replies.