4e1d13ebd43f4caa84788fa689b42dca25196b9f
max
  Mon Apr 6 12:32:39 2015 -0700
changes after code review, refs #15127

diff --git src/hg/lib/hui.c src/hg/lib/hui.c
index 95086f5..e4990d4 100644
--- src/hg/lib/hui.c
+++ src/hg/lib/hui.c
@@ -363,31 +363,31 @@
 
 void setUdcTimeout(struct cart *cart)
 /* set the udc cache timeout */
 {
 int timeout = cartUsualInt(cart, "udcTimeout", 300);
 if (udcCacheTimeout() < timeout)
     udcSetCacheTimeout(timeout);
 }
 
 void setUdcCacheDir()
 /* set the path to the udc cache dir */
 {
 if (cfgOptionBooleanDefault("udc.useLocalDiskCache", TRUE))
     udcSetDefaultDir(cfgOptionDefault("udc.cacheDir", udcDefaultDir()));
 else
-    udcSetDefaultDir(NULL);
+    udcDisableCache();
 }
 
 
 char *wrapWhiteFont(char *s)
 /* Write white font around s */
 {
 static char buf[256];
 safef(buf, sizeof(buf), "<span style='color:#FFFFFF;'>%s</span>", s);
 return buf;
 }
 
 char *hDocumentRoot()
 /* get the path to the DocumentRoot, or the default */
 {
 return cfgOptionDefault("browser.documentRoot", DOCUMENT_ROOT);