Skip to main content

Clear Cache?

3 replies [Last post]
Joined: 2003-07-08

I seem to be having trouble getting altered content on my server to be shown in the browser. I've altered a JNLP file in my docroot, but refreshing the browser (and clearing the browser cache, and trying a different browser) still shows the old document.

It appears that glassfish is keeping a cache -- how can I flush it?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2014-09-24

There is a cache in Glassfish.

I found no way to flush the cache other than stop and start

I did look through the glassfish admin manual to see what cache settings I could make:

This looked promising, but did not work.
Specify the --statementcachesize option in the asadmin.

Maybe someone who is much smarter than me can show us how to flush the cache in glassfish without stop/start.

Thanks in advance.

Joined: 2003-06-10

Can you descripve the steps you are doing exactly? Glassfish doesn't keep any cache AFAIK.


Joined: 2003-07-08

All I did was:

1) create a webapp war
2) autodeploy
3) run the jnlp link from the web browser
a) oops, messed up my jnlp file. Fixed it
b) redeployed new war file to autodeploy dir
4) hmmm, WebStart is still showing the old jnlp file
5) clear WebStart cache
6) still trying to launch the old jnlp file
7) clear WebStart cache and browser cache
8) still not working
9) Just click "save link" so I can see if WebStart is the problem
a) Nope, the file being shown is still the old file
10) Try a different browser (ie instead of firefox) to see if the browser is the problem
a) Nope, still getting the old file

So, GlassFish must be acting as the cache...mustn't it?