title: Is this a reasonable caching method?
body: <p>I'm using PHP to render LaTeX to pngs as part of a CMS, I need some kind of simple caching mechanism because it takes the server about 2 seconds to render the png. I take the raw TeX and run it through the md5 function, then I insert the hash into the database along with the current timestamp, and use the &lt;hash&gt;.png as the filename. Every time the image is accessed the timestamo is updated. </p>