cgit

commit 378cae639849ba9f020666d1cf6dad6e08bfaf0e

Author: Lars Hjemli <hjemli@gmail.com>

Add missing ttl-options in config

Signed-off-by: Lars Hjemli <hjemli@gmail.com>

 shared.c | 8 ++++++++


diff --git a/shared.c b/shared.c
index 762eb382d93666fa772226d436d1d6ac1a109826..18b795b6cdec641b6e429bf9ba4ca6a274567488 100644
--- a/shared.c
+++ b/shared.c
@@ -60,6 +60,14 @@ 	else if (!strcmp(name, "nocache"))
 		cgit_nocache = atoi(value);
 	else if (!strcmp(name, "cache-root"))
 		cgit_cache_root = xstrdup(value);
+	else if (!strcmp(name, "cache-root-ttl"))
+		cgit_cache_root_ttl = atoi(value);
+	else if (!strcmp(name, "cache-repo-ttl"))
+		cgit_cache_repo_ttl = atoi(value);
+	else if (!strcmp(name, "cache-static-ttl"))
+		cgit_cache_static_ttl = atoi(value);
+	else if (!strcmp(name, "cache-dynamic-ttl"))
+		cgit_cache_dynamic_ttl = atoi(value);
 }
 
 void cgit_repo_config_cb(const char *name, const char *value)