Is there a setting to cache or improve the performance for going to the database for Liferay?
As mentioned above, by default, we use Ehache for caching objects in Liferay. We also support other cache providers, but Ehcache is the only one we support in a clustered environment. You can change your cache provider in portal.properties by changing the hibernate.cache.provider_class property. Many of our customers use a database cluster to improve performance. We often recommend Sequoia as an open source alternative. Most of our larger clients use database clustering, primarily for failover purposes.