summaryrefslogtreecommitdiff
path: root/patchtracker/Conf.py
diff options
context:
space:
mode:
authorSean Finney <seanius@debian.org>2009-08-31 23:10:43 +0200
committerSean Finney <seanius@debian.org>2009-09-01 08:58:00 +0200
commitf28a60d7373b5d23599c111ff18d69a94ae69a36 (patch)
tree1dec1acfe10c29d1079830e33b66180795de0064 /patchtracker/Conf.py
parentad817fd1bd8d88b242fea45ea1d96315d48c3a47 (diff)
downloadpatch-tracker-f28a60d7373b5d23599c111ff18d69a94ae69a36.tar.gz
initial implementation of selective output caching
the PackageCmd and PatchCmd classes are now cached on their first request. note that this is incomplete, as the PackageCmd is also currently used to print non-static information as well (when a package name doesn't find an exact match and it does a query).
Diffstat (limited to 'patchtracker/Conf.py')
-rwxr-xr-xpatchtracker/Conf.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/patchtracker/Conf.py b/patchtracker/Conf.py
index 954001e..448f595 100755
--- a/patchtracker/Conf.py
+++ b/patchtracker/Conf.py
@@ -22,6 +22,18 @@ pts_index_file = "pts-index.json.gz"
by the PTS system
"""
+caching = True
+""" Should caching be enabled? """
+
+cachedir = "cache"
+""" The location of the output cache directory. This directory contains
+ cached output from system commands or other nontrivial calculations
+ for faster and less resource intensive re-use
+"""
+
+cachecompress = False
+""" Should compression of cache data be enabled? """
+
try:
from localconfig import *
except ImportError: