title: Caching for frequently changing queries
body: <p>We have a web application which listens to web service calls, constructs queries, pulls the data from database and sends the results back to the client. Since we are experiencing some performance issues, we want to cache the data on server side. The queries are complex which involve multiple joins. The database is updated through another application which is outside of the web app. I don't think we ca use EHCache as the database is not updated through the same application and the query parameters are changing frequently. What Caching strategies can we adapt here to improve the performance?
  Note: The queries are optimized for better performance.</p>