OK, I just checked in my output caching code. By default, it's turned off,
but if you uncomment the <OutputCacheDuration> section in flexwiki.config
and set it to an time interval (e.g. 00:10:00), it will enable the feature.
The way it works is to cache (in the ASP.NET cache) the results of all calls
to default.aspx. There's a separate line in the cache for each URL and
security context, so for example we don't accidentally serve up the same
view of HomePage to Derek and Craig, since security means they might get
different results.
The duration mentioned above limits the time an item will live. If you set
it to 01:34:05, every item will be discarded from the cache one hour,
thirty-four minutes, and five seconds after it is first rendered.
There's dependency detection mechanism that automatically figures out what
each request depends on, and invalidates cache items whenever those things
change.
Right now, I'm caching only for default.aspx. And actually I'm caching the
body of the page separately from the top, left, right, and bottom borders.
The caching mechanism is general, however, and someone could add it to
(e.g.) LastModified.aspx.
You can tell if something came from the cache, because when it does, the
system will inject HTML comments into the rendered output indicating the
cache key and time the object was cached. You can also see the cache keys in
the cache pages in the /admin tool.
I don't think most wikis are going to need this, so I'd advise it be left
off (the default). However, if you have a few pages that get hit frequently
that are very slow (or if you have David's mega-wiki), you can give this a
try. I haven't done extensive testing, but it worked when I tried it on a
smallish wiki here.
Enjoy!
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Flexwiki-users mailing list
Flexwiki-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexwiki-users