]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
cache: id means static, even if head is specified too
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index a45ce1ff7de5a88af2dc287c918099a5cd62d53f..861352a5e9e8da1558cde08b3cc076375d138ede 100644 (file)
--- 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;
 }