ganglia/ganglia-web — pull request #246 by cddude229 (2014-08-24 19:06:28+00:00)
Title: Lock the cache file while writing to prevent partial reads

I think the change is pretty self-explanatory. I've been running this in a production environment for a couple weeks now, so I have no reason to doubt stability. (Prior to this change, the cache would often have blank data.)