]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/templates/default/squid.conf.erb
Don't use sibling caches with squid 3
[chef.git] / cookbooks / tilecache / templates / default / squid.conf.erb
index 080c7998d9a7ac662f412acdb11be338959354d8..6c03797d17ee17e380b3bf40fa2fc841ae5189e5 100644 (file)
@@ -105,11 +105,11 @@ acl tile_caches src <%= address %>
 <% end -%>
 <% end -%>
 
+<% if node[:squid][:version] == "2" -%>
 #Siblings
 <% node[:tilecache][:tile_siblings].each do |sibling| -%>
 cache_peer <%= sibling %> sibling 3128 3130 weight=1500
-cache_peer_access <%= sibling %> deny tile_caches
-cache_peer_access <%= sibling %> deny osmtile_thishost
+<% end -%>
 <% end -%>
 
 #Primary Parent