/* cgit.c: cgi for the git scm
*
- * Copyright (C) 2006 Lars Hjemli
- * Copyright (C) 2010-2013 Jason A. Donenfeld <Jason@zx2c4.com>
+ * Copyright (C) 2006-2014 cgit Development Team <cgit@lists.zx2c4.com>
*
* Licensed under GNU General Public License v2
* (see COPYING for full license text)
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;
}