[Logo]
Forums Register Login
Old request data is still there.
I am new to groovy.Two GSPs(groovy server pages) in my application have redirection links to each other and control is flowing through a controller.First GSP(index.gsp) has link to second GSP(search.gsp) and search.gsp has link to index.gsp.In search.gsp I am doing some database operations and results are displayed in same page.When I going back to index.gsp and than coming back to search.gsp old request data(resulted from database operations) is still there!
Don't know why it hasn't been flushed..
Are you storing the data in some cache? Did you try clearing the cache by Force refresh?
I am storing data in cache.I tried clearing cache of browser.It doesn't work..
 
Ankit Tripathi wrote:I am storing data in cache.I tried clearing cache of browser.It doesn't work..

If you are storing the data in cache which would mean that it persists between requests. If you really dont want the old data to be present in the cache, you would have to clear the cache before entering the page or may be while leaving the page.
 

If you are storing the data in cache which would mean that it persists between requests. If you really dont want the old data to be present in the cache, you would have to clear the cache before entering the page or may be while leaving the page.



How can we do it in Groovy.Please provide me with some example?
 
Ankit Tripathi wrote:

If you are storing the data in cache which would mean that it persists between requests. If you really dont want the old data to be present in the cache, you would have to clear the cache before entering the page or may be while leaving the page.



How can we do it in Groovy.Please provide me with some example?


How are you adding it in cache? The reverse/opposite of that would be removing the cache.
 

How are you adding it in cache? The reverse/opposite of that would be removing the cache.


I think I am not doing any Cache operation in my code..
 
Ankit Tripathi wrote:

How are you adding it in cache? The reverse/opposite of that would be removing the cache.


I think I am not doing any Cache operation in my code..

did you try this link?
 
Mohamed Sanaulla wrote:
Ankit Tripathi wrote:

How are you adding it in cache? The reverse/opposite of that would be removing the cache.


I think I am not doing any Cache operation in my code..

did you try this link?


Ya,I have tried that also.It's not working...
Can you post the code which you are trying?
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Oct 16, 2017 16:41:56.