On Fri, Jul 18, 2003 at 03:45:37AM +0800, jerome wrote: > is it possible to cache query result in aolserver? just to reduce time of > retrieval....
Of course it is. Probably the simplest way is to put your query inside a proc and cache the return value of that proc. util_memoize works well for this: http://openacs.org/api-doc/proc-view?proc=util%5fmemoize There are other ways, including just doing it as a one off yourself with some if statements and nsv calls before/after your query. None of these ways come out of the box with the AOLserver API though, you'll need to write or copy at least a little bit of Tcl code. -- Andrew Piskorski <[EMAIL PROTECTED]> http://www.piskorski.com -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
