Re: Page instances and threads

Christoph Zwerschke <[email protected]>
Newsgroups gmane.comp.python.webware
Message-ID <[email protected]>
sophana schrieb :
> Christoph Zwerschke a écrit :
>> You can configure this with the Application.config settings 
>> CacheServletClasses and CacheServletInstances. If you set them to yes, 
>> then it is like you write.
>>   
> Ok thanks!
> I was wondering why I couldn't find any documentation about this.
> I finally found it in the 0.7 webkit doc, but it is not is the 0.9 doc
> http://webware.sourceforge.net/Webware-0.7/WebKit/Docs/UsersGuide.html
> http://webware.sourceforge.net/Webware-0.9.2/WebKit/Docs/UsersGuide.html
> 
> Where is it gone?

It has been sourced out to a separate Configuration Guide. You'll find a
link to it in the chapter "Configuration".

>> You may also consider instantiating your object in the function 
>> __init__.contextInitialize(app, ctxPath). This is only executed once 
>> when the context is initialized.
>>
> Yes but I think it is launched once per process, and not once per thread.
> Am I right?

Right. The context is only initialized once by the Application server.

-- Christoph

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.