From: <fa...@vh...> - 2005-09-12 15:10:18
|
Author: fabrice Date: 2005-09-12 17:01:18 +0200 (Mon, 12 Sep 2005) New Revision: 786 Modified: ccm-core/trunk/src/com/arsdigita/caching/CacheServlet.java Log: Option to deactivate cache host notification Modified: ccm-core/trunk/src/com/arsdigita/caching/CacheServlet.java =================================================================== --- ccm-core/trunk/src/com/arsdigita/caching/CacheServlet.java 2005-09-12 15:00:56 UTC (rev 785) +++ ccm-core/trunk/src/com/arsdigita/caching/CacheServlet.java 2005-09-12 15:01:18 UTC (rev 786) @@ -170,6 +170,7 @@ // return; // } + if (!Web.getConfig().getDeactivateCacheHostNotifications()) { s_log.debug("notifying peers"); final DomainCollection hosts = Host.retrieveAll(); final HttpHost current = Web.getConfig().getHost(); @@ -179,6 +180,7 @@ notifyPeer(host, makeParameterMap(id, key, hash)); } } + } private static void notifyPeer(Host host, ParameterMap params) { final String url = "http://" + host + SERVLET_URL + params; |