Aracılığıyla paylaş


HttpRuntimeSection.EnableKernelOutputCache Özellik

Tanım

Çıktı önbelleğinin etkinleştirilip etkinleştirilmediğini belirten bir değer alır veya ayarlar.

public:
 property bool EnableKernelOutputCache { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("enableKernelOutputCache", DefaultValue=true)]
public bool EnableKernelOutputCache { get; set; }
[<System.Configuration.ConfigurationProperty("enableKernelOutputCache", DefaultValue=true)>]
member this.EnableKernelOutputCache : bool with get, set
Public Property EnableKernelOutputCache As Boolean

Özellik Değeri

true çıktı önbelleğe alma etkinse; aksi takdirde , false. true varsayılan değerdir.

Öznitelikler

Örnekler

Aşağıdaki örnekte özelliğinin nasıl kullanılacağı gösterilmektedir EnableKernelOutputCache .

// Get the current EnableKernelOutputCache property value.
Response.Write("EnableKernelOutputCache: " +
  configSection.EnableKernelOutputCache + "<br>");

// Set the EnableKernelOutputCache property to true.
configSection.EnableKernelOutputCache = true;
' Get the current EnableKernelOutputCache property value.
Response.Write("EnableKernelOutputCache: " & _
  configSection.EnableKernelOutputCache & "<br>")

' Set the EnableKernelOutputCache property to true.
configSection.EnableKernelOutputCache = True

Açıklamalar

Bir yanıtı önbelleğe almak için aşağıdaki ölçütlerin karşılanması gerekir:

  • Önbelleğe alma, bir sayfa yönergesi veya önbelleğe alma API'si tarafından açıkça etkinleştirilmelidir.

  • Önbelleğin, çekirdeğin ne zaman atılması gerektiğini bilmesi için bir süre sonu ilkesi olmalıdır.

  • Önbelleğe almada değişken üst bilgisi veya parametre olamaz.

  • İstek herhangi bir kimlik doğrulaması gerektirmemelidir.

Not

Bu özellik yalnızca Internet Information Services (IIS) sürüm 6.0 veya üzeri yüklü olduğunda geçerlidir.

Şunlara uygulanır

Ayrıca bkz.