Unload the AptPackages caches after a period of inactivity.
[quix0rs-apt-p2p.git] / test.py
diff --git a/test.py b/test.py
index f3a4dbcfd3fd2a3bb4f42fbfb5ce8a7deb32dd63..cfac85b572851815e030689792ed4611fbaabd10 100755 (executable)
--- a/test.py
+++ b/test.py
@@ -332,6 +332,11 @@ CACHE_DIR = %(CACHE_DIR)s
 # Whether it's OK to use an IP addres from a known local/private range
 LOCAL_OK = yes
 
+# Unload the packages cache after an interval of inactivity this long.
+# The packages cache uses a lot of memory, and only takes a few seconds
+# to reload when a new request arrives.
+UNLOAD_PACKAGES_CACHE = 5m
+
 # Which DHT implementation to use.
 # It must be possile to do "from <DHT>.DHT import DHT" to get a class that
 # implements the IDHT interface.