[fcgi.py] Force cache upgrade?
Demian Brecht
demianbrecht at gmail.com
Fri Sep 28 19:41:58 EDT 2012
If you don't have access to restart Apache (or `x` server), then touch
fcgi.py *should* work.
On Fri, Sep 28, 2012 at 2:57 PM, Gilles <nospam at nospam.com> wrote:
> 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.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120928/b1c23cc1/attachment.html>
More information about the Python-list
mailing list