079f5b930be84649612111b959eaed36bef8c1de
braney
  Wed Jun 19 14:38:27 2019 -0700
some tweaks to trackDb caching

diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c
index 4b07585..711522c 100644
--- src/hg/lib/hdb.c
+++ src/hg/lib/hdb.c
@@ -4092,30 +4092,32 @@
 rInheritFields(tdbList);
 slSort(&tdbList, trackDbCmp);
 return tdbList;
 }
 
 struct trackDb *hTrackDb(char *db)
 /* Load tracks associated with current db.
  * Supertracks are loaded as a trackDb, but are not in the returned list,
  * but are accessible via the parent pointers of the member tracks.  Also,
  * the supertrack trackDb subtrack fields are not set here (would be
  * incompatible with the returned list)
  * Returns list sorted by priority
  *	NOTE: this result is cached, do not free it !
  */
 {
+if (trackHubDatabase(db))
+    return NULL;
 struct trackDb *tdbList = NULL;
 
 boolean doCache = FALSE;
 if (sameOk(cfgOption("cacheTrackDb"), "on"))
     doCache = TRUE;
 
 if (doCache)
     {
     char *table = hTrackDbPath();
 
     struct sqlConnection *conn = hAllocConn(db);
     time_t tableTime = sqlTableUpdateTime(conn, table);
     hFreeConn(&conn);
 
     struct trackDb *cacheTdb = trackDbCache(db, tableTime);