diff options
| -rw-r--r-- | cgit.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -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 | ||
