• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Refreshing cache in ForumRepository

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rafael,

We are having issues with the cache object in ForumRepository.java. The cache somehow sometimes gets invalidated and the categories don't show even if they exist in the database. To eliminate these problems, each time the getAllCategories method is called, we would like to invalidate the cache and execute the start method again, so the cache is refreshed from the database. Is there any easy way to invalidate the entire cache at one time? I noticed that it does not suffice to refresh just the CATEGORIES_SET..which is why it probably makes sense to invalidate the cache and invoke the start method once again. Thank you.

Regards,
Mallika
[originally posted on jforum.net by mallikamt]
 
I didn't say it. I'm just telling you what this tiny ad said.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic