about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--cgit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cgit.c b/cgit.c index a45ce1f..861352a 100644 --- a/cgit.c +++ b/cgit.c
@@ -928,12 +928,12 @@ static int calc_ttl()
928 if (!strcmp(ctx.qry.page, "about")) 928 if (!strcmp(ctx.qry.page, "about"))
929 return ctx.cfg.cache_about_ttl; 929 return ctx.cfg.cache_about_ttl;
930 930
931 if (ctx.qry.has_symref)
932 return ctx.cfg.cache_dynamic_ttl;
933
934 if (ctx.qry.has_sha1) 931 if (ctx.qry.has_sha1)
935 return ctx.cfg.cache_static_ttl; 932 return ctx.cfg.cache_static_ttl;
936 933
934 if (ctx.qry.has_symref)
935 return ctx.cfg.cache_dynamic_ttl;
936
937 return ctx.cfg.cache_repo_ttl; 937 return ctx.cfg.cache_repo_ttl;
938} 938}
939 939