]> git.cameronkatri.com Git - cgit.git/commitdiff
Add missing ttl-options in config
authorLars Hjemli <hjemli@gmail.com>
Thu, 21 Dec 2006 23:56:02 +0000 (00:56 +0100)
committerLars Hjemli <hjemli@gmail.com>
Thu, 21 Dec 2006 23:56:15 +0000 (00:56 +0100)
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
shared.c

index 762eb382d93666fa772226d436d1d6ac1a109826..18b795b6cdec641b6e429bf9ba4ca6a274567488 100644 (file)
--- a/shared.c
+++ b/shared.c
@@ -60,6 +60,14 @@ void cgit_global_config_cb(const char *name, const char *value)
                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)