Server-Side Page Caching

You can adjust server-side page caching for anonymous users when their having the very freshest content is less of a concern. With server-side caching on, the server caches pages that are assembled dynamically from data and resources. Retrieving a page from the cache can save the time needed to assemble a fresh page. However, if the data that makes up the page has changed, the page in the cache won't be as fresh as a new one would be.

With server-side page caching disabled (and for registered users, whether or not caching is enabled), Jive SBS sends its default HTTP headers. With page caching enabled, in addition to the server-side page cache stored in memory, the application also sets the HTTP header in the response to Cache-Control max-age=3600.

The value set for max-age is configurable as described below.

You can set these with system properties in the admin console.

Property Description Values
jive.pageCache.enabled Enables server-side page caching. false (default) to disable page caching; true to enable it. When enabled, only anonymous or guest users will receive cached content.
jive.pageCache.maxage.seconds Sets the age after which the server will create a fresh page rather retrieve the page from the cache. Defaults to 60 seconds. This sets Cache-Control: max-age=60 in the HTTP headers for the page.
jive.pageCache.expiration.seconds Sets the number of seconds after which a page will be removed from the cache. Defaults to 30 seconds
jive.pageCache.maxEntries Sets the maximum number of pages that can be maintained in the cache. Note that increasing this value might require that you provide more system resources for the application. Defaults to 1000 entries.

Note that turning on developer mode by setting the jive.devMode property to true will disable the maxAgeFilter setting (effectively setting jive.maxAgeFilter.enable to false). The jive.devMode property is intended for situations when you're developing themes or plugins, In those situations, caching can hinder you from seeing the results of your development work.