028cc4b4e9679a5e38994fa2221cb73e88aa6616 galt Thu Jan 24 19:02:04 2013 -0800 set udc cache location early before cart and doMiddle if possible. Restoring saved sessions with bigDataUrl custom tracks was leaking to /tmp/udcCache instead of correct CGI location under trash. diff --git src/hg/hgTracks/renderMain.c src/hg/hgTracks/renderMain.c index e89c5b2..7a557e5 100644 --- src/hg/hgTracks/renderMain.c +++ src/hg/hgTracks/renderMain.c @@ -94,30 +94,31 @@ track->loadItems(track); } verboseTime(2, "After load"); /* Initialize global image box. */ int sideSliceWidth = 0; // Just being explicit if (withLeftLabels) sideSliceWidth = (insideX - gfxBorder*3) + 2; theImgBox = imgBoxStart(database,chromName,winStart,winEnd,(!revCmplDisp),sideSliceWidth,tl.picWidth); makeActiveImage(trackList, NULL); verboseTime(2,"After makeActiveImage"); } int main(int argc, char *argv[]) { +setUdcCacheDir(); /* early is helpful for hgTracks */ if(argc == 1) { long enteredMainTime = clock1000(); // CGI call // htmlPushEarlyHandlers(); XXXX do I need to do this? hPrintDisable(); oldVars = hashNew(10); struct cart *cart = cartForSession(hUserCookie(), excludeVars, oldVars); // setup approriate CGI variables which tell hgTracks code what to do. cartSetBoolean(cart, "hgt.trackImgOnly", TRUE); if(cartVarExists(cart, "jsonp")) {