[open-ils-commits] r8281 - branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/lib

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Dec 27 17:03:42 EST 2007


Author: erickson
Date: 2007-12-27 16:40:56 -0500 (Thu, 27 Dec 2007)
New Revision: 8281

Modified:
   branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/lib/util.py
Log:
only connect to cache server if there is no globally connected cache client

Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/lib/util.py
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/lib/util.py	2007-12-27 21:18:27 UTC (rev 8280)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/lib/util.py	2007-12-27 21:40:56 UTC (rev 8281)
@@ -23,7 +23,8 @@
     servers = osrf.set.get('cache.global.servers.server')
     if not isinstance(servers, list):
         servers = [servers]
-    osrf.cache.CacheClient.connect(servers)
+    if not osrf.cache.CacheClient.get_client():
+        osrf.cache.CacheClient.connect(servers)
 
 
 



More information about the open-ils-commits mailing list