Muehlenhoff has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/311392

Change subject: Always refresh Package/Release/Translation files
......................................................................

Always refresh Package/Release/Translation files

Taken from squid-deb-proxy. Without this, we've occasionally been running into
installation errors after changes to the Packages files (e.g. after a jessie
point release), caused by stale cache returns for Packages files.

Change-Id: I264b5a8f01afdf719f21fc2764ef4ce475d7c792
---
M modules/role/templates/caching-proxy/squid.conf.erb
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/92/311392/1

diff --git a/modules/role/templates/caching-proxy/squid.conf.erb 
b/modules/role/templates/caching-proxy/squid.conf.erb
index 5526029..355355f 100644
--- a/modules/role/templates/caching-proxy/squid.conf.erb
+++ b/modules/role/templates/caching-proxy/squid.conf.erb
@@ -16,6 +16,10 @@
 logfile_rotate 10
 cache_store_log none
 hosts_file /etc/hosts
+refresh_pattern \/(Packages|Sources)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims
+refresh_pattern \/Release(|\.gpg)$ 0 0% 0 refresh-ims
+refresh_pattern \/InRelease$ 0 0% 0 refresh-ims
+refresh_pattern \/(Translation-.*)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims
 refresh_pattern ^ftp:          1440    20%     10080
 refresh_pattern ^gopher:       1440    0%      1440
 refresh_pattern .              0       20%     4320

-- 
To view, visit https://gerrit.wikimedia.org/r/311392
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I264b5a8f01afdf719f21fc2764ef4ce475d7c792
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Muehlenhoff <mmuhlenh...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to