Dossy Shiobara said: > I disagree: I think whether to persist the cache to disk should be > specified when the cache is created, not when an cache entry is That's really what I meant.
> output in a file named $cachedir/$adppath/$xx/[md5 $adpargs].dat, where > $xx might be the first 2 characters of the [md5 $adpargs]. That would solve Vignette's "tens of thousands of files in a directory" problem. Good thinking. > be solved pretty simply: today, you can use an Expect script to connect > to each machine and connect to the nscp to issue a command, as the > simplest implementation. Or simply create a "clearcache.adp" and the server doing the clear simply makes http calls all other servers. But even as a fast C module this should be dead easy. I have never use ns_cache before, but it seems to me there is no way to store something in the cache from Tcl, is that the case? Would it be possible to implement? I was thinking that because each item has a timeout, this could be a perfect mechanism to implement sessions in AOLserver. Just have a cache named "sessions" and each session is one entry as ns_set. On every request, just reset the timeout. Or is that a crazy idea? Cheers, Bas. -- 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.
