X-Git-Url: https://git.mxchange.org/?p=quix0rs-apt-p2p.git;a=blobdiff_plain;f=test.py;h=cfac85b572851815e030689792ed4611fbaabd10;hp=f3a4dbcfd3fd2a3bb4f42fbfb5ce8a7deb32dd63;hb=be126fc5cd40e26479c50fee4f64cc478f1eb55a;hpb=ff4c2f93404e4b5b2e647ff29569f6431f608b02 diff --git a/test.py b/test.py index f3a4dbc..cfac85b 100755 --- 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 import DHT" to get a class that # implements the IDHT interface.