On Wed, 13 Feb 2008, Richard Heck wrote:
[EMAIL PROTECTED] wrote:
On Wed, 13 Feb 2008, Pavel Sanda wrote:
> so adjusting some 12 childern wont have effect on normal traffic while
> could significantly inhibit swapping when somebody starts playing with
> trac.
Regarding Trac, the "user base" might be larger than you think as some of
the wiki pages embed files from the repository using Trac. So if one or
more users frequently look at such wiki pages, it will also indirectly
invoke Trac (just to extract the relevan file of course).
I wonder if there's not some way to cache a lot of this.
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.
/Christian
--
Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr