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.
Mallika [originally posted on jforum.net by mallikamt]