4dfb2a02da9b0a652a534911ebda73d3600872e2
galt
  Wed Apr 17 16:31:34 2013 -0700
Brian put setUdcCacheDir() earlier, but he should have cleaned the later ones out.
diff --git src/hg/hgGenome/hgGenome.c src/hg/hgGenome/hgGenome.c
index 0a78530..1ed3675 100644
--- src/hg/hgGenome/hgGenome.c
+++ src/hg/hgGenome/hgGenome.c
@@ -530,31 +530,30 @@
 cartWarnCatcher(dispatchPage, cart, cartEarlyWarningHandler);
 cartCheckout(&cart);
 }
 
 
 void dispatchLocation()
 /* When this is called no output has been written at all.  We
  * look at command variables in cart and figure out if we just
  * are going write an HTTP location line, which happens when we
  * want to invoke say the genome browser or gene sorter without 
  * another intermediate page.  If we need to do more than that
  * then we call hggDoUsualHttp. */
 {
 struct sqlConnection *conn = NULL;
 getDbAndGenome(cart, &database, &genome, oldVars);
-setUdcCacheDir();
 cartSetString(cart, "db", database); /* Some custom tracks code needs this */
 withLabels = cartUsualBoolean(cart, hggLabels, TRUE);
 conn = hAllocConn(database);
 getGenoGraphs(conn);
 
 /* Handle cases that just want a HTTP Location line: */
 if (cartVarExists(cart, hggClickX))
     {
     clickOnImage(conn);
     return;
     }
 
 hFreeConn(&conn);
 
 /* For other cases we want to print out some of the usual HTTP