Dotnetnuke Dal2可缓存属性-将缓存时间设置为零

Dotnetnuke Dal2可缓存属性-将缓存时间设置为零,dotnetnuke,Dotnetnuke,我在自定义模块使用的DNN数据库中有一些记录,重要的是它们永远不会被缓存,而是每次请求时都会返回新的数据 将可缓存属性设置为零更好,还是将可缓存属性一起删除(或者是相同的) 导入DotNetNuke.ComponentModel.DataAnnotations 命名空间组件 公共类vw\u Krisshifts\u过期\u换档等级\u详细信息 .... 末级 结束命名空间 或 公共类vw\u Krisshifts\u过期\u换档等级\u详细信息 .... 末级 Imports DotNet

我在自定义模块使用的DNN数据库中有一些记录,重要的是它们永远不会被缓存,而是每次请求时都会返回新的数据

将可缓存属性设置为零更好,还是将可缓存属性一起删除(或者是相同的)

导入DotNetNuke.ComponentModel.DataAnnotations
命名空间组件
公共类vw\u Krisshifts\u过期\u换档等级\u详细信息
....
末级
结束命名空间


公共类vw\u Krisshifts\u过期\u换档等级\u详细信息
....
末级
Imports DotNetNuke.ComponentModel.DataAnnotations
Namespace Components
  <TableName("vw_MyView")>
  <PrimaryKey("PrimaryKey", AutoIncrement:=True)>
  <Cacheable("vw_MyView", CacheItemPriority.Default, 0)>
  <Scope("PortalID")>
  Public Class vw_KrisisShifts_Expired_ShiftTrade_Details
       ....
  End Class
End Namespace
  <TableName("vw_MyView")>
  <PrimaryKey("PrimaryKey", AutoIncrement:=True)>
  <Scope("PortalID")>
  Public Class vw_KrisisShifts_Expired_ShiftTrade_Details
       ....
  End Class