gitweb: do not read cache file more than necessary
commit7cca3b193c7f23d36ad70371c8dcec1165ad56e4
authorKyle J. McKay <mackyle@gmail.com>
Mon, 6 Apr 2015 23:51:48 +0000 (6 16:51 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 6 Apr 2015 23:51:48 +0000 (6 16:51 -0700)
tree965df6b2862e05fc2a18712e3bf86f28f8e98988
parentd296a8c51a34bd60da02acde9f2df5d2b98ae595
gitweb: do not read cache file more than necessary

Make sure that if the cache file has already been read into memory
and it's still current that we use that rather than reading it into
memory again on subsequent calls during the same invocation.

If we are serving multiple requests during one invocation via one
of the supported mechanisms, this can have a great speed boost.

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