This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Caching dynamic content  RSS feed

 
Billy Vandory
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I currently have a JSP which displays Category Groups and Categories. To show all groups and categories is a fairly expensive database call, so I want to cache the entire jsp page once it's created. The only problem is, there is other dynamic content which shows page views, number of open sessions, etc. Getting this data from the DB is ok, so what I'm looking for is an API or Tool that will cache my JSP but only certain parts that I specify somehow.

Is there such a thing?



 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66256
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cache the data, not the JSP.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!