gitweb: cache age_epoch instead of age
commit41b85403e65dadcd6cbf8183561ed182fcb7904a
authorKyle J. McKay <mackyle@gmail.com>
Mon, 20 Apr 2015 18:13:07 +0000 (20 11:13 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 20 Apr 2015 18:13:07 +0000 (20 11:13 -0700)
treef0feb9ac9a67d3c4adeafafef23e975b3bf7947f
parent978601718f03937c6f4a4f8cef397055c5cbb365
gitweb: cache age_epoch instead of age

Caching the age (e.g. 10 minutes ago) instead of the age
epoch (e.g. 2015-04-20 11:16) prevents us from caching
the information properly.

Instead remove 'age' and 'age_string' from the project
info (and hence from the cached project info) and replace
them with 'age_epoch' which is not sensitive to the
current time.

A side effect of this is that the age and age_string
values are computed when the project list is actually
shown.  In addition since a single base time is used
when doing this two projects that have exactly the
same age will always show that even if it takes some
indeterminate time between when the first age is
computed and the second.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
gitweb/gitweb.perl