Caching versus pre-rendering

 

+
Search Tips   |   Advanced Search

 

Content displayed in rendering portlets and through IWWCM can be cached. An alternative to caching is the use of the pre-rendering feature. This topic outlines the differences between each strategy.

A pre-rendered site can be viewed in two ways:

Using a Web server

Viewing 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.

Using Web Content Management

Viewing a pre-rendered site through Web Content Management 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 the 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 No No
Custom caching No 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 through Web Content Management

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

  Advanced caching Pre-rendered site delivered through Web Content Management.
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 Yes
Custom caching Yes Yes
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