Hello.

I've been wondering if it's possible to cache dtcl pages using a simple
method:

1. before a page is executed, I create a proc
::request::hputs and ::request::headers, which call
::hputs and ::headers respectively and store arguments as some lists.

2. after the page is executed, both lists are stored and re-executed
   when the same page is being executed for the second time.

3. the cache should be cleaned up so that it does not contain more
   entries than it is allowed to...

But here are some questions which I wonder about:

1. how can I break execution of dtcl page? since this does not work:
namespace eval a {puts "A"; return; puts "B"}; puts "C"

then I have no idea how to print headers+body and exit
This is what seems to work, but is a very weird construction:

namespace eval a {while {1==1} {puts A; break; puts B; break}; puts C}

any better (and easy to implement) ideas?

2. how to create unique names? I can have the .ttml supply it's name
   (using arguments it uses), but I was wondering how this could be done
   automagically :-)

3. where to store it? SQL or arrays? [arrays have a disadvantage that
   their lifetime is smaller, SQL will probably take more time and will
   be DBMS dependant]

Or maybe write a dedicated server using tcp, icp or pipes?

-- 
Wojtek Kocjan
[EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to