On Wed, 13 Feb 2008, [EMAIL PROTECTED] wrote:

Sure, it could be done like this for instance.

* Take the path to the file in question, convert it to a hashed filename.
* Check the cache directory for a file with this hashed filename
* If it doesn't exist or is older than some threshold, save/download to
 cache directory
* Render the page using the file from the cache directory

A (minor?) problem with this approach is chosing a good threshold value.

Don't know how long this would take to implement, but the MimeTeX recipe already has this framework as it's used to cache the images that are generated based on math formulas.

Let me know if you think this is needed, otherwise I'll let it rest for now.

/Christian

--
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr

Reply via email to