diff options
author | Frederick Yin <fkfd@macaw.me> | 2020-07-10 17:57:49 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@macaw.me> | 2020-07-10 17:59:14 +0800 |
commit | a4f8c8a25d1deadea90c44c0445fa902c26d6306 (patch) | |
tree | d9e0171ee90611481c9646d5666c11908f3dbe4d /git-gmi/config.py | |
parent | b5b74573fe2a6c8030122ff6574603c8e3668c85 (diff) |
Caching 101
Changes:
- Caching operations
- Mangled internal method names
Diffstat (limited to 'git-gmi/config.py')
-rw-r--r-- | git-gmi/config.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/git-gmi/config.py b/git-gmi/config.py index 0cd62de..d9b04e7 100644 --- a/git-gmi/config.py +++ b/git-gmi/config.py @@ -2,6 +2,10 @@ GIT_CATALOG = "/home/fakefred/p/gemini/repos/" # which path leads to your cgi app after the URL's host part CGI_PATH = "/git/cgi/" +# cache dir +CACHE_DIR = "/home/fakefred/Archive/_cache/" +# how long before cache expires, in seconds: int +CACHE_TTL = 120 # your site's display name GIT_GMI_SITE_TITLE = "git.gmi demo instance" # the "main" branch that git.gmi defaults to |