Enumeration of site performance setting, say by another way that means how to set the cache.

Namespace: DotNetNuke.Common
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public enum PerformanceSettings
Visual Basic
Public Enumeration PerformanceSettings

Members

Member nameValueDescription
NoCaching0 No Caching
LightCaching1 Caching for a short time
ModerateCaching3 Caching for moderate
HeavyCaching6 Caching for a long time

Remarks

Using cache will speed up the application to a great degree, we recommend to use cache for whole modules, but sometimes cache also make confuse for user, if we didn't take care of how to make cache expired when needed, such as if a data has already been deleted but the cache arn't clear, it will cause un expected errors. so you should choose a correct performance setting type when you trying to cache some stuff, and always remember update cache immediately after the data changed.

default cache policy in core api will use cache timeout muitple Host Performance setting's value as cache time(unit: minutes):

  • HostSettingsCacheTimeOut: 20
  • PortalAliasCacheTimeOut: 200
  • PortalSettingsCacheTimeOut: 20
  • More cache timeout definitions seeDataCache

See Also