diff --git a/pyfpdb/Configuration.py b/pyfpdb/Configuration.py index 4e01b796..ed12f7a4 100644 --- a/pyfpdb/Configuration.py +++ b/pyfpdb/Configuration.py @@ -479,12 +479,13 @@ class Import: self.hhArchiveBase = node.getAttribute("hhArchiveBase") self.hhBulkPath = node.getAttribute("hhBulkPath") self.saveActions = string_to_bool(node.getAttribute("saveActions"), default=False) + self.cacheSessions = string_to_bool(node.getAttribute("cacheSessions"), default=False) self.fastStoreHudCache = string_to_bool(node.getAttribute("fastStoreHudCache"), default=False) self.saveStarsHH = string_to_bool(node.getAttribute("saveStarsHH"), default=False) def __str__(self): return " interval = %s\n callFpdbHud = %s\n hhArchiveBase = %s\n saveActions = %s\n fastStoreHudCache = %s\n" \ - % (self.interval, self.callFpdbHud, self.hhArchiveBase, self.saveActions, self.fastStoreHudCache) + % (self.interval, self.callFpdbHud, self.hhArchiveBase, self.saveActions, self.cacheSessions, self.fastStoreHudCache) class HudUI: def __init__(self, node): @@ -1259,6 +1260,9 @@ class Config: try: imp['saveActions'] = self.imp.saveActions except: imp['saveActions'] = False + + try: imp['cacheSessions'] = self.imp.cacheSessions + except: imp['cacheSessions'] = False try: imp['saveStarsHH'] = self.imp.saveStarsHH except: imp['saveStarsHH'] = False diff --git a/pyfpdb/HUD_config.test.xml b/pyfpdb/HUD_config.test.xml index 556bbede..964be208 100644 --- a/pyfpdb/HUD_config.test.xml +++ b/pyfpdb/HUD_config.test.xml @@ -2,7 +2,7 @@ - +