[imp] Re: folder list caching in IMP 3.x
liam hoekenga
liamr at umich.edu
Wed Mar 30 08:36:12 PST 2005
>> Are there any versions of IMP 3.x that support the folder list
>> caching that IMP 4.x supports? We're not going to be upgrade to
>> 4.x for a couple more months and we believe that generating the
>> folder list w/ every page requestis driving load up on our proxy
>> servers.
>
> No. Although the folder caching code is entirely contained in
> imp/lib/Folder.php (grep for 'cache_folders') so it probably would not
> be too difficult to backport if you wanted to.
Ok.. so if IMP 3.x /doesn't/ support folder list caching, and /does/
regenerate
the folder list with each page request... what's this piece of code?
lib/Folder.php ~ ln 98
// either get the list from the cache, or go to the IMAP
// server to get it if we haven't gotten it yet.
if (isset($list_cache[$signature])) {
$mailboxes = $list_cache[$signature];
} else {
....
Liam
More information about the imp
mailing list