You are here: Contributors Reference > CommonSpot Menus > Properties Menu > Cache/Static Settings


Cache/Static Settings

Use this dialog to control how CommonSpot handles dynamic content and “stale” cache. Sites can gain significant performance improvements by adjusting these settings, particularly when changes are frequent (see Page Performance). Instead of re-fetching or recomputing original data for each request (dynamic state), you can render the page from server-side data stored locally (static state).

Enabling cache for dynamic content improves performance by eliminating the need for CommonSpot to re-render several types of dynamic content for every request. For example, random content can be cached for 5 minutes, giving most requests the performance benefit of the cache without losing dynamic appearance.

With Stale Cache Handling set to Never, CommonSpot always delivers the most current content, even if this means performing time-consuming rendering while site visitors wait. Enabling expired cache, improves performance , although site visitors may not immediately see the latest updates. CommonSpot minimizes the delivery of outdated content by using a background task to rebuild cache for pages where stale cache has been used.

Use this dialog to set how outdated is “too outdated” for the current page or template. A short limit (5-10 minutes, for example) will ensure that all updates are delivered quickly, but may negate the performance benefit for infrequently viewed pages. A longer limit (1 day, for example) can eliminate most page rendering wati times (especially if a scheduled process rebuilds cache during low-traffic periods), but some content updates won't be immediately available.

For example, instead of regenerating page indexes after every change, which can slow the display of pages, you can opt to regenerate them on an hourly, daily, or weekly basis. CommonSpot gives you flexibility in finding the balance between content freshness and page performance.

This dialog reports current state information for the page.

Caching options vary based on state, whether the page is cacheable, whether Static Content Generation is installed/enabled, and whether any global caching defaults are in effect through Site Administration. See Site Administration - Properties/Settings - Cache Properties. If your site uses the CommonSpot Static Content Generation feature, review this topic in the Static Content Generation Guide and in the Adminstrator's Reference.

When Static Generation is not enabled and the page is not cacheable, CommonSpot displays an informational message detailing the reasons content cannot be cached, for example:

These settings and the list of reasons apply to published pages only. They do not display for content that is work in progress.  The message in the example below displays for a page that was published and is now inactive.


When Static Generation is enabled and the page contains non-cacheable elements, CommonSpot displays an informational message detailing the reasons that one or more elements must be dynamically rendered.

Complete the following fields.

Serve this page from Static Server

This option displays for sites using the Static Content Generation feature. Pick from the dropdown.


Cache Dynamic Content

Pick from the dropdown.

Stale Cache Handling

You can optionally configure CommonSpot to serve recently-expired (“stale”) cache to reduce or eliminate delays in delivering content to site visitors. This feature enables you to set whether and how long to serve stale cache at the site, template, or page level. Administrators configure site-wide settings for handling Stale Cache through Site Admin - Site Properties / Settings - Cache Properties.

Use this option to customize settings at the individual template or page level. Additional options are available for sites with Static Content Generation installed (See "Static Content Generation" in the Administrator's Reference).

Once CommonSpot detects that content stored in cache is stale, cache is for that page is automatically queued for regeneration through a background process that updates all stale content.

Pick from the dropdown to indicate how CommonSpot should handle this page when it detects stale content. Choosing Never generates this page dynamically, rebuilding cache for each page request. Selecting this option may result in a performance hit for site visitors, but content will always be up to date.

Choosing any other option serves site visitors stale content, if stale cache exists, and the cache is not older than the time period specified. Visitors may not see the latest content, but page rendering times improve. Updates depend on site-wide, template-level, or custom settings.


Related Links

You can download PDF versions of the Content Contributor's, Administrator's, and Elements Reference documents from the support section of (requires login).

For technical support: