• 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

about cache

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
FYI - There are a lot of topics in the forum about this....

The short version is that jForum's caching is done via in-memory static variables. There is no "cache file" that can be shared. So if a user posts to JVM A, the in-memory cache in JVM B doesn't get updated.

There is no pre-built solution for this, but it is possible to write your own non-caching cache implimentation that forces all requests to be satisfied by going to the DB. But, of course, you take a performance hit with this.
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use the jforum in two application with load balance without cluster. connect a same database.

who can tell me how to use the same cache data? I found while a user post a topic but some users can view, some cannot. I guess two tomcat with different cache. I can put the cache file in a public store disk, it is enough to solve the problem? and where I can find and change the cache store path?
[originally posted on jforum.net by Patrick]
 
Could you hold this puppy for a sec? I need to adjust this tiny ad:
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