On 2005.04.12, Olaf Mersmann <[EMAIL PROTECTED]> wrote:
> due to various design decisions, we generate some heavily used ADP pages
> as strings on certain events and reuse them thereafter. As far as I can
> tell, ns_adp_parse -string does not cache the parsed representation of
> these (how could it, there's no real identifier short of the whole string?).
>
> Is there a way to cache the parsed representation externally in a
> variable? If not, I quess my best option is to write out the strings to
> a tmpfile and use it with ns_adp_parse -file.

You can use either nscache or nsv's.  nscache is convenient because it
provides the necessary machinery for sized or timed caches.  NSV is
convenient because it's already part of the core server (nscache is an
extra module, for now) and can be used to build your own custom caching
code in Tcl alone.

-- Dossy

--
Dossy Shiobara                       mail: [EMAIL PROTECTED]
Panoptic Computer Network             web: http://www.panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)


--
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.

Reply via email to