Manual:$wgUseCdn/pt

Category:MediaWiki configuration settings/pt#UseCdnCategory:MediaWiki configuration settings introduced in version 1.34.0/pt#UseCdnCategory:MediaWiki configuration settings still in use/pt#UseCdnCategory:Squid variables/pt#UseCdn
HTTP proxy (CDN) settings: $wgUseCdn
Ativar/desativar a colocação em cache da visualização da página.
Introduzida na versão:1.34.0 (Gerrit change 387877; git #f9f8dff4)
Removida na versão:ainda em uso
Valores permitidos:(booliano)
Valor por omissão:false

Detalhes

Ativar/desativar a colocação em cache da visualização da página. A configuração de CDN causa as seguintes alterações no comportamento:

  • O cabeçalho do Controlo da Cache é alterado para permitir que o proxy da cache cegamente coloque o conteúdo em cache por um período de tempo predeterminado (configurado por $wgCdnMaxAge).
  • The Last-Modified header is artificially shortened to ensure the cache proxy will not renew outdated HTML beyond a certain age. The Last-Modified date will never be older than $wgCdnMaxAge. This will allow to refresh the cached copy in case there were changes to footer icons, sidebar, skin update, and other configuration or skin-level changes not tracked by the wiki page itself.
  • Purges are sent to ensure content edited by users remains up to date immediately.

The list of Cdn servers to be purged on update must be stored in $wgCdnServers.

Sending purge requests requires the sockets PHP extension.
Category:MediaWiki configuration settings/pt Category:MediaWiki configuration settings introduced in version 1.34.0/pt Category:MediaWiki configuration settings still in use/pt Category:Squid variables/pt