Hello, collegues.
I need help. Could somebody explain wondering thing?
I use jsp to render content (here is snippet):
String tempdir = "/home/usr1/temp/tv/"; UUID uid = UUID.randomUUID(); String param = request.getParameter("param")+""; try { File f = new File(tempdir + uid); f.createNewFile(); PrintWriter pw = new PrintWriter(new OutputStreamWriter(new FileOutputStream(f), "UTF-8")); pw.print(param); pw.close(); } catch (Exception ex) { }
Now I refresh that page which contain my content. If I set cached policy of content to "Caching off" I will see TWO files in /home/usr1/temp/tv/ . HOW did it happened? If I set cached policy of content to "Caching on" then I did not see any files in temp folder after refresh page.
So.
If I do not use cache then I see nothing
If I use cache then I see TWO files. CDS increase a response of system.
How to resolve this?
Thanks.