• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Enum Globals.PerformanceSettings

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

Namespace: DotNetNuke.Common
Assembly: DotNetNuke.dll
Syntax
public enum PerformanceSettings : int
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

Fields

Name Description
HeavyCaching

Caching for a long time

LightCaching

Caching for a short time

ModerateCaching

Caching for moderate time

NoCaching

No Caching

  • View Source
Back to top by the community, for the community... #DNNCMS