A method as in claim 1 wherein at least one element references content for the page contained in an external database, such content is retrieved as a database result set, and the step of determining whether to cache additionally comprises the step of determining whether to cache the result set depending upon the value of at least one context specific variable.