My application is mainly content based with no writes to the database from the runtime application. Because of this we use a high level of caching through hibernate. In fact, the project requirements state that if the database is unavailable, the application should still run. The caches use ehcache and are set to live forever. Theoretically if all the pages are hit, all of the necessary objects should live in the cache. The only issue we are running into is that a few requests return empty results. These empty results are valid, but the way caching works, the query will always check the database.
Is there a way to tell hibernate to cache empty results?
thanks.
Karl
|