On Thu, Mar 20, 2008 at 10:51 AM, Michael Baierl <[EMAIL PROTECTED]> wrote: > till wrote: > > On Thu, Mar 20, 2008 at 9:25 AM, A.L.E.C <[EMAIL PROTECTED]> 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.
Maybe. I think the behavior is from that when you click "unread/read" the same action is triggered. Code is being re-used - that's all. If you guys wanna open a ticket and identify more of those issues and maybe even submit a patch, go ahead. :) Till _______________________________________________ List info: http://lists.roundcube.net/dev/
