Unidiff1 files changed, 1 insertions, 1 deletions
|
diff --git a/cgit.c b/cgit.c index d975570..a3a04d9 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -21,9 +21,9 @@ static void cgit_prepare_cache(struct cacheitem *item) |
21 | item->ttl = cgit_cache_repo_ttl; |
21 | item->ttl = cgit_cache_repo_ttl; |
22 | } else { |
22 | } else { |
23 | item->name = xstrdup(fmt("%s/%s/%s/%s.html", cgit_cache_root, |
23 | item->name = xstrdup(fmt("%s/%s/%s/%s.html", cgit_cache_root, |
24 | cgit_query_repo, cgit_query_page, |
24 | cgit_query_repo, cgit_query_page, |
25 | cgit_querystring)); |
25 | cache_safe_filename(cgit_querystring))); |
26 | if (cgit_query_has_symref) |
26 | if (cgit_query_has_symref) |
27 | item->ttl = cgit_cache_dynamic_ttl; |
27 | item->ttl = cgit_cache_dynamic_ttl; |
28 | else if (cgit_query_has_sha1) |
28 | else if (cgit_query_has_sha1) |
29 | item->ttl = cgit_cache_static_ttl; |
29 | item->ttl = cgit_cache_static_ttl; |
|