[fcgi.py] Force cache upgrade?

G

Gilles

Hello

Does someone know if something must be done after editing a FastCGI +
WSGI script so that the changes will show in the browser immediately
instead of having to wait X minutes?

===========
#!/usr/bin/env python2.6

def myapp(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/plain')])
return ['I CHANGED THIS\n']

if __name__ == '__main__':
from flup.server.fcgi import WSGIServer
WSGIServer(myapp).run()
===========

I guess the FastCGI server (Flup) only updates its cache every so
often. Do I need to type a command to force Flup to recompile the
Python script?

Thank you.
 
G

Gilles

I guess the FastCGI server (Flup) only updates its cache every so
often. Do I need to type a command to force Flup to recompile the
Python script?

Turns out that, yes, mod_fcgid is configured to reload a script only
after some time or some number of hits, and yes, mod_fcgid settings
are off-limit on a shared host.
 
M

Michael Ströder

Gilles said:
Turns out that, yes, mod_fcgid is configured to reload a script only
after some time or some number of hits,

Well, that's the whole point of using FastCGI:
Have a long-running process for better performance.

Ciao, Michael.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top