K2 Runtime web.config File Caching Settings
The following Cache settings are available in the K2 Runtime web.config file typically found at: C:\Program Files\K2\K2 smartforms Runtime\Web.config. This topic does not list all possible cache settings found in the Runtime web.config file. The settings below apply to all cache items.
Web Caching Settings
The following affect caching of the K2 runtime site. Number values are generally in seconds. Caching settings apply the following pattern but all patterns do not necessarily apply to all items.
- Enabled - Active or not.
- InitialDuration - the amount of time allowed to cache for the first time.
- SlidingDuration - Extends the caching when a subsequent request is made for the same resource.
-
SlidingExpiration - true or false. When sliding expiration is enabled the time allowed in the cache is extended each time the value is retrieved and stored (if SlidingDuration is greater than InitialDuration).
-
Priority - these properties are used in the HTTP cache. They indicate the priority of the cached values. When freeing values for caches the lowest priority items are removed first). The following properties are available:
- Low
- Below Normal
- Normal
- Default
- Above Normal
- High
- Not Removable
-
Cacheability - these properties are used in the HTTP cache response control. They indicate where the value can be cached. The following properties are available:
- NoCache - No caching
- Private - Cached in the browser of the client, in other words not on the server or proxy
- ServerAndNoCache - Cached in the server only
- Server - Cached in the server
- Public - Cached anywhere, including proxy server inbetween
- ServerAndPrivate - Cached in the server and in the browser, but not in the proxy
Node | Change permitted? | Description | Example or Default Value |
---|---|---|---|
Yes | Used to distribute cache updates between different runtime and design time sites. To disable cache updates use a blank value. If not specified all the runtime URL's sites registered in the environment library are used. In NLB and Cluster environments, this can be set to the individual nodes of the Cluster/NLB | Relative or absolute URL on the root of the website | |
Copy
Forms.Runtime.BaseUrl.Cache
|
Yes | Runtime Settings for the K2 Designer | See Web Cache Settings |
Copy
Forms.UserVersions.Cache
|
Yes | Settings for timestamps per user if anything is changed | See Web Cache Settings |
Copy
Forms.Runtime.PersistedParameters.Cache
|
Yes | Runtime setting to persist information per Form. Used when a SmartObject Method is executed and a Method Parameter is required. | See Web Cache Settings |
Copy
Forms.Runtime.PersistedFilters.Cache
|
Yes | Runtime setting to persist information per Form. Used when a List View is executed and filters have been specified. Caching is applied per user per View. | See Web Cache Settings |
Copy
Forms.Runtime.CultureDetails.Cache
|
Yes | Culture settings for a View or Form for example Date/Time format and Currency format | See Web Cache Settings |
Copy
Forms.Runtime.Controllers.Cache
|
Yes | Controllers settings for a View or Form | See Web Cache Settings |
Copy
Forms.Runtime.Events.Cache
|
Yes | Events settings for a View or Form | See Web Cache Settings |
Copy
Forms.Runtime.EnvironmentFields.Cache.Enabled
|
Yes | Environment fields setting. When set to "true" caching of environment fields is enabled | See Web Cache Settings |
Copy
Forms.Runtime.EnvironmentFields.Cache.InitialDuration
|
Yes | Environment fields setting. This is the duration (in seconds) the environment fields will be cached. The default is 300 seconds | See Web Cache Settings |
Copy
Forms.Web.Settings.Cache
|
Yes | Caching of View or Form settings | See Web Cache Settings |
Copy
Forms.JsonResources.Cache
|
Yes | Controls caching of localized resources for Forms containing for example error messages etc | See Web Cache Settings |
Copy
Forms.CombinedResources.Cache
|
Yes | Caching of Post Render Combining. Combined resource of CSS and script files after Form has been rendered, delivered as one file to the browser | See Web Cache Settings |
Copy
SmartObjects.Client.SmartObject.Cache
|
Yes | Caching of the Runtime definition of the SmartObject. | See Web Cache Settings |
Copy
SmartObjects.Client.SmartObjectServerVersion.Cache
|
Yes | Settings to get the latest version of the SmartObject definition from the server. | See Web Cache Settings |
Management and Client API Tracing and Caching
The default cache settings are there to give the best performance. If you change any of these settings, thoroughly test them to be sure there is not a negative impact on performance.
If you reinstall or reconfigure K2, any customized cache settings are overwritten by the default settings.
The following affect caching of the K2 runtime site. Number values are generally in seconds. Caching settings apply the following pattern but all patterns do not necessarily apply to all items.
- Enabled - Active or not
- InitialDuration - Time allowed for first time caching
- SlidingDuration - Extends the caching when a subsequent request is made for the same resource
-
Priority - The following values are available:
- Low
- Below Normal
- Normal
- Default
- Above Normal
- High
- Not Removable
Node | Change permitted? | Description | Example or Default Value |
---|---|---|---|
Copy
Forms.Management
|
Yes |
Management API - Caching of Control Types |
See above |
Copy
Forms.Client
|
Yes |
Client API |
See above |
Copy
Forms.Client.Users.Cache
|
Yes | Caching of user information such as user name, e-mail address, description etc | See above |
Copy
Forms.Client.UserVersions.Cache
|
Yes | Caching of user information with relation to the last changes made on the database. | See above |
Copy
Forms.Client.UserSettings.Cache
|
Yes | Caching of user settings on a View or Form including changes on the local machine | See above |
Copy
Forms.Client.Views.Cache
|
Yes | Caching of View definitions | See above |
Copy
Forms.Client.Forms.Cache
|
Yes | Caching of Form definitions | See above |
Copy
Forms.Client.ControlTypes.Cache
|
Yes | Caching of Control Types | See above |
Copy
Forms.Client.Themes.Cache
|
Yes | Caching of Themes | See above |
Output Cache Settings
K2 implements IIS Output Caching to improve performance. The web.config files store Output Caching settings for the Runtime and Design time sites. Using the cachecontrol.ashx?m=clear command will clear this cache.
Node | Change permitted? | Description | Example or Default Value |
---|---|---|---|
Copy
Output Caching settings
|
No | Output Cache Settings | See below |
- Duration - Duration of output caching noted in seconds
- Enabled - True or False
- Location - Server - Default for runtime and design time sites. Remember this will be set in either the runtime or design time site web.comfig file.