diff options
Diffstat (limited to 'shared.c')
| -rw-r--r-- | shared.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -17,6 +17,7 @@ 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; |
| @@ -54,6 +55,8 @@ void cgit_global_config_cb(const char *name, const char *value) | |||
| 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) |
