Caching versus pre-rendering

 

+

Search Tips   |   Advanced Search

 

Content displayed in rendering portlets and through IBM Lotus WCM can be cached.

An alternative to caching is the use of the pre-rendering feature.

pre-rendered site can be viewed in two ways:

Use a Web server

View a pre-rendered site through a Web server is similar to using basic caching because the displayed content is static and custom caching cannot be used.

Use WCM

View a pre-rendered site through WCM is similar to using advanced caching because content can be dynamic and custom caching can be used.

 

Basic caching versus a pre-rendered site delivered with a Web server

At first glance, the pre-rendering feature and basic caching do the same thing. There are however, some major differences that will determine which feature is the best for you.

The main difference between the two features is that the pre-rendering feature takes a snapshot of the entire site each time it is run. Basic caching only caches on a page-by-page basis. If performance is your main issue, then pre-rendering might be the answer. If not, then basic caching might be a better option.

  Basic caching Pre-rendered site delivered with a Web server
Performance Very fast Extremely fast
Connect tag processing Yes No
Custom caching Yes No
Memory requirements Low to Medium Memory requirements depends on the web server being used.
Disk requirements Low to Medium Potentially very high as the entire site must be able to fit on disk.
Unexpected broken links Yes

As some pages may be cached at different times, there is a small chance that not all the links on a cached page will be currently valid.

No

The site is pre-rendered in a single batch, greatly reducing the chances of inconsistencies in the site.

 

Advanced caching versus a pre-rendered site delivered using WCM

These options are very similar. You may have to test both strategies before deciding which is best for your site.

  Advanced caching Pre-rendered site delivered through WCM .
Performance Fast when cached, but slower if the requested page has expired from the cache. (As tag processing has a cost, this depends on how many connect tags a page contains.) Fast, but as tag processing has a cost, this depends on how many connect tags a page contains.
Connect tag processing Yes No
Custom caching Yes No
Memory requirements Medium to high. Medium to high.
Disk requirements Medium to high. Medium to high.
Unexpected broken links Yes

As some pages may be cached at different times, there is a small chance that not all the links on a cached page will be currently valid.

No

The site is pre-rendered in a single batch, greatly reducing the chances of inconsistencies in the site.

 

Parent topic

Caching options