----- Oryginalna wiadomość -----
> Od: "Roberto De Ioris" <[email protected]>
> Do: "uWSGI developers and users list" <[email protected]>
> Wysłane: piątek, 11 marzec 2011 11:29:13
> Temat: Re: [uWSGI] cacheframework
>
> Are you sure you are putting valid HTTP response in the cache ?
>
> Otherwise nginx will discard data
>
I swapped the current:
uwsgi.cache_set('x', '1234')
to:
wsgi.cache_set('x', 'HTTP/1.1 200 OK\nContent-Type: text/html;
charset=UTF-8\n\n1234\n')
Only thing that has changed is that it immediately corresponds with 502:
$ curl -I http://t3/c/
HTTP/1.1 502 Bad Gateway
Server: nginx
Date: Fri, 11 Mar 2011 10:36:13 GMT
Content-Type: text/html
Content-Length: 166
Connection: keep-alive
before - hung up to nginx timeout.
--
Łukasz Wróblewski
http://www.nri.pl/ - Nowoczesne Rozwiązania Internetowe
http://www.hostowisko.pl/ - Profesjonalny i tani hosting
http://www.katalog-polskich-firm.pl/ - Najlepszy darmowy katalog firm
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi