[opencms-dev] Reduce calls to DB

Michael Emmerich emmerich at german-navy.de
Sat Feb 19 12:42:21 CET 2011


Tom,

> It seems like even if I have a single page and I mark it as "cache:
> always" - each request for this page will need to first query the DB
> (even after it is cached).
>
> This is a problem for heavy load sites - is there anything I can do to
> allow the request to be served directly from the cache (unless it
> doesn't exist)?

The flex cache only caches the HMTL-output of a JSP in OpenCms.
If does not cache permission checks for example which have to be done 
everytime you request something from OpenCms.

To reduce the number of requests that are sent to the DB, you could use 
the OCEE Accelerator, which actually is a cache that is sitting right 
between OpenCms and the database. This would the the recommenced way to 
go for heavy load sites.


Kind regards,
Michael

-- 
Privat:                    emmerich at german-navy.de

German Naval History:      www.german-navy.de
Die Reisen des Nönö Bären: www.baerenurlaub.de



More information about the opencms-dev mailing list