[cvs] commit: imp/lib Mailbox.php imp/lib/IMAP Cache.php

Michael M Slusarz slusarz at horde.org
Thu Apr 27 21:51:52 PDT 2006


slusarz     2006-04-27 21:51:52 PDT

  Modified files:
    lib                  Mailbox.php 
    lib/IMAP             Cache.php 
  Log:
  These changes seems to make caching work much, much better.
  Search results seem to be working again.
  We now cache thread objects.
  We should only rebuild the mailbox list now in the following situations:
  + first access to mailbox
  + if mailbox has changed (per imap_status() call)
  + in message view, only when we reach the last message in list.
  + for search mailboxes, every mailbox access
  What are we gaining?  In cases 2 and 3 above, we used to always generate
  the mailbox list - now we only regenerate if needed.
  In case 1 above, we used to regenerate every time we switched mailboxes.  now
  we only regenerate when switching mailboxes if the mailbox has changed.
  
  Revision  Changes    Path
  1.11      +28 -13    imp/lib/IMAP/Cache.php
  1.191     +100 -113  imp/lib/Mailbox.php

  Chora Links:
  http://cvs.horde.org/diff.php/imp/lib/IMAP/Cache.php?r1=1.10&r2=1.11&ty=u
  http://cvs.horde.org/diff.php/imp/lib/Mailbox.php?r1=1.190&r2=1.191&ty=u


More information about the cvs mailing list