till wrote:
On Thu, Mar 20, 2008 at 9:25 AM, A.L.E.C alec@alec.pl wrote:
Clicking on message generate two requests: "GET /?_task=mail&_action=preview&_uid=414&_mbox=Spam&_framed=1 HTTP/1.1" 304 26 "POST /?_task=mail&_action=mark HTTP/1.1" 200 205
Yes, and no. Keep in mind, PHP is not very good with persistence. At least not across multiple requests.
I agree that we should (and I think we do) recycle objects/connections during a single request, but your example shows two different things. It's hard to add that layer of persistence in a scripting language, especially since the GC in PHP is done at the end of each script run.
Hi Till, I don't think it's about persisting connections between requests, it's about saving requests - in the above case if a mail is opened for preview this same request should also mark it to be read (what the second request is for). This will save one request between client and server and one db connection attempt and one IMAP connection request on the server.
Michael Baierl http://mbaierl.com/
Nie vergessen: Egal was du auch tust, es gibt mindestens Tausend Menschen, die besser sind als du! _______________________________________________ List info: http://lists.roundcube.net/dev/