HttpResponse::setCacheControl
(PECL pecl_http >= 0.10.0)
HttpResponse::setCacheControl — Önbellek denetimini etkin kılar
Açıklama
static
bool HttpResponse::setCacheControl
( string
$denetim
[, int $ömür = 0
[, bool $yeniden_doğrulanmalı = true
]] )private (özel) veya public (genel) olarak özel bir Cache-Control başlığı tanımlar.
Değiştirgeler
-
denetim -
Birincil önbellek denetim ayarı.
-
ömür -
Saniye cinsinden ömür; önbellek girdisinin istemci tarafında ne kadar süreyle geçerli olacağını belirler.
-
yeniden_doğrulanmalı -
Önbellekteki öğenin istemci tarafından her istek için yeniden doğrulanıp doğrulanmayacağını belirler.
Dönen Değerler
Başarı durumunda TRUE döner. Aksi takdirde,
denetim public,
private veya no-cache
değerlerinden biri ile eşleşmiyorsa FALSE döner.
Ayrıca Bakınız
- HttpResponse::getCacheControl() - Önbellek denetim durumu ile döner
- HttpResponse::setCache() - Önbellekleme durumu belirlenir
- HttpResponse::getCache() - Önbellekleme ayarını döndürür
There are no user contributed notes for this page.
