[fcgi.py] Force cache upgrade?

Gilles nospam at nospam.com
Fri Sep 28 17:57:14 EDT 2012


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.



More information about the Python-list mailing list