|
diff --git a/shared.c b/shared.c index 5f2a5ce..7149597 100644 --- a/ shared.c+++ b/ shared.c |
|
@@ -16,8 +16,9 @@ char *cgit_logo_link = "http://www.kernel.org/pub/software/scm/git/docs/"; |
16 | char *cgit_virtual_root = NULL; |
16 | char *cgit_virtual_root = NULL; |
17 | |
17 | |
18 | char *cgit_cache_root = "/var/cache/cgit"; |
18 | char *cgit_cache_root = "/var/cache/cgit"; |
19 | |
19 | |
| |
20 | int cgit_nocache = 0; |
20 | int cgit_max_lock_attempts = 5; |
21 | int cgit_max_lock_attempts = 5; |
21 | int cgit_cache_root_ttl = 5; |
22 | int cgit_cache_root_ttl = 5; |
22 | int cgit_cache_repo_ttl = 5; |
23 | int cgit_cache_repo_ttl = 5; |
23 | int cgit_cache_dynamic_ttl = 5; |
24 | int cgit_cache_dynamic_ttl = 5; |
@@ -53,8 +54,10 @@ void cgit_global_config_cb(const char *name, const char *value) |
53 | else if (!strcmp(name, "logo-link")) |
54 | else if (!strcmp(name, "logo-link")) |
54 | cgit_logo_link = xstrdup(value); |
55 | cgit_logo_link = xstrdup(value); |
55 | else if (!strcmp(name, "virtual-root")) |
56 | else if (!strcmp(name, "virtual-root")) |
56 | cgit_virtual_root = xstrdup(value); |
57 | cgit_virtual_root = xstrdup(value); |
| |
58 | else if (!strcmp(name, "nocache")) |
| |
59 | cgit_nocache = atoi(value); |
57 | } |
60 | } |
58 | |
61 | |
59 | void cgit_repo_config_cb(const char *name, const char *value) |
62 | void cgit_repo_config_cb(const char *name, const char *value) |
60 | { |
63 | { |
|