87d32f7a09b12032189d1e8295282f3135e17748 galt Thu May 9 15:52:43 2013 -0700 putting setUdcCacheDir() in places where cgis get launched with special params for saved sessions -- hopefully this means we will not have to actually put this call in every single cgi diff --git src/hg/lib/cart.c src/hg/lib/cart.c index f5a79e4..b8401a1 100644 --- src/hg/lib/cart.c +++ src/hg/lib/cart.c @@ -613,40 +613,42 @@ cartTrace(cart, when, conn); loadCgiOverHash(cart, oldVars); // I think this is the place to justify old and new values cartJustify(cart, oldVars); #ifndef GBROWSE /* If some CGI other than hgSession been passed hgSession loading instructions, * apply those to cart before we do anything else. (If this is hgSession, * let it handle the settings so it can display feedback to the user.) */ if (! (cgiScriptName() && endsWith(cgiScriptName(), "hgSession"))) { if (cartVarExists(cart, hgsDoOtherUser)) { + setUdcCacheDir(); char *otherUser = cartString(cart, hgsOtherUserName); char *sessionName = cartString(cart, hgsOtherUserSessionName); struct sqlConnection *conn2 = hConnectCentral(); cartLoadUserSession(conn2, otherUser, sessionName, cart, oldVars, hgsDoOtherUser); hDisconnectCentral(&conn2); cartTrace(cart, "after cartLUS", conn); } else if (cartVarExists(cart, hgsDoLoadUrl)) { + setUdcCacheDir(); char *url = cartString(cart, hgsLoadUrlName); struct lineFile *lf = netLineFileOpen(url); cartLoadSettings(lf, cart, oldVars, hgsDoLoadUrl); lineFileClose(&lf); cartTrace(cart, "after cartLS", conn); } } #endif /* GBROWSE */ /* wire up the assembly hubs so we can operate without sql */ hubConnectLoadHubs(cart); if (exclude != NULL) { while ((ex = *exclude++))