On 2001.04.30, ricard helene <[EMAIL PROTECTED]> wrote:
> How can I set a variable that is available to all page
> requests until I unset it?
[...]
> What I'm trying to do is "cache" small chunks of a
> page in memory by storing the html in variables.
>
> Can you do this with straight tcl, or do you have to
> involve the aolserver api? or do you have to do it
> another way? which way is best?
Because AOLserver is multithreaded and you can't be
guaranteed to have sequential requests get handled by
the same thread, you cannot do this with plain Tcl.
Using the AOLserver API, you've got lots of choices.
Using ns_share, nsv_* API, or even ns_cache.
Which way is "best" depends on your use and other
requirements other than "being able to access the
same data from multiple request threads."
- Dossy
--
Dossy Shiobara mail: [EMAIL PROTECTED]
Panoptic Computer Network web: http://www.panoptic.com/