[dev] Re: [cvs] commit: horde/lib SessionCache.php

Chuck Hagenbuch chuck@horde.org
Sat, 6 Jul 2002 00:53:59 -0400


Quoting Michael M Slusarz <slusarz@bigworm.colorado.edu>:

>   New method of pruning the Session cache. The new method ensures that an
>   entry will last at least through the entire next request -and- that no
>   entry added during this request will ever be removed before it can be
>   accessed in at least one future request.  Theoretically, a request that
> has
>   many cache inserts (e.g. a mail message with 20+ parts) would lose the
>   first cache items before the next request even has a chance to use it.

The original purpose of this class was as a quick cache, for data that 
could be re-created - if it couldn't be recreated, it shouldn't be here.

Sounds like the changes that you've been making here probably belong in a 
Cache_session subclass.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"After a few minutes the most aromatic and nice smelling Italian coffee 
 will come out of the exhaustpipe." - Our stove-top espresso pot