gitweb: update html caching code to do a 'tee'
commit2f09912b4a412433d0565503ab7d8586fcc4632e
authorKyle J. McKay <mackyle@gmail.com>
Thu, 23 Apr 2015 02:04:58 +0000 (22 19:04 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 23 Apr 2015 02:04:58 +0000 (22 19:04 -0700)
tree1cb3d784accf4559ac0bcf31a036db70d27e6ef3
parent27a94024c9fb521dc5a99298ff40179551fd0971
gitweb: update html caching code to do a 'tee'

Instead of just sending the page-being-cachedc contents directly
to the cache file being created, also keep a copy in memory so
we can avoid having to read the file back in.

At the same time make sure we've properly encoded any characters
into UTF-8 to avoid any wide character in stream problems.

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