Руководство:$wgUseSquid

From mediawiki.org
This page is a translated version of the page Manual:$wgUseSquid and the translation is 46% complete.
Outdated translations are marked like this.
HTTP proxy (CDN) settings: $wgUseSquid
Включить/Отключить Squid.
Введено в версии:1.2.0
Устарела с версии:1.34.0 (Gerrit change 387877; git #f9f8dff4)
Удалено в версии:1.35.0 (Gerrit change 579755; git #e8d9d68b)
Допустимые значения:(логическое)
Значение по умолчанию:false

Подробности

Включить/Отключить Squid. Squid configuration causes the following changes in behaviour:

  • The Cache-Control header is changed to allow the cache proxy to blindly cache content for a predetermined period of time (configured by $wgSquidMaxage ).
  • The Last-Modified header is artificially shortened to ensure the cache proxy will not renew outdated HTML beyond a certain age. Дата в Last-Modified никогда не должен быть старее чем в $wgSquidMaxage. Это позволит обновить кэшированную копию в случае, если были изменены нижние иконки, боковая панель, обновлен скин и другие конфигурации или другие изменения на уровне скина, которые отслеживаются самой страницей wiki.
  • Purges are sent to ensure content edited by users remains up to date immediately.

The list of Squid servers to be purged on update must be stored in $wgSquidServers .

Sending purge requests requires the sockets PHP extension.