X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/61ff10065b579fa38182fcf10cc7e63839acd53c..820df9c66073b1345397642b46f1885b40b620e3:/cgit.c 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() if (!strcmp(ctx.qry.page, "about")) return ctx.cfg.cache_about_ttl; - if (ctx.qry.has_symref) - return ctx.cfg.cache_dynamic_ttl; - if (ctx.qry.has_sha1) return ctx.cfg.cache_static_ttl; + if (ctx.qry.has_symref) + return ctx.cfg.cache_dynamic_ttl; + return ctx.cfg.cache_repo_ttl; }