[Seaside] Lurking SessionObjects

Julian Fitzell seaside@lists.squeakfoundation.org
Mon, 18 Nov 2002 15:59:13 -0800


LRU stands for Least Recently Used.  I believe WACache probably doesn't 
remove keys itself.  WALRUCache should remove the least recently used 
item when an item is added that would put the cache over its maximum size.

Julian

Derek Brans wrote:

> Strange: I cannot find any senders of 'remove:' or 'removeKey:' that
> might be doing the cache cleanup.
>  It looks like WAExpringCache has code for removing expired keys, but
> all caches created are either WACache's or WALRUCache's (what does LRU
> stand for?).   Do I have an older version of Seaside?
> Where is the code responsible removing expired continuations and
> sessions from the cache?
>
> Thanks again!
> Derek
>
>
>
> On Monday, November 18, 2002, at 02:05 PM, Avi Bryant wrote:
>
> >
> > On Mon, 18 Nov 2002, Julian Fitzell wrote:
> >
> >> Hey Derek,
> >>
> >> instances of subclasses of WASessionObject are snapshotted on every 
> page
> >> view so you can roll their state back when the user uses the back
> >> button, etc.  My guess is that your cache objects are holding on to
> >> these objects.
> >
> >
> > Just to clarify - each Application has a cache of Sessions; each Session
> > has a cache of Continuations; these continuations hold on to the
> > WASessionObjects they need.  Sessions and Continuations will both 
> expire,
> > so although you will always have lots of these objects around, they 
> won't
> > grow forever - old ones will disappear as new ones get created.
> >
> > If you're seeing an image keep growing and growing in size forever, then
> > that's a problem, of course.  Otherwise you should trust them to clean
> > themselves up.
> >
> > _______________________________________________
> > Seaside mailing list
> > Seaside@lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/listinfo/seaside
> >
> >
> Nerd on a Wire: Web and Information Solutions
> Website Design - Database Systems - Site Hosting
> 604.874.6463
> mailto:info@nerdonawire.com
> For more information, visit http://nerdonawire.com
>
> _______________________________________________
> Seaside mailing list
> Seaside@lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside



-- 
julian@beta4.com
Beta4 Productions (http://www.beta4.com)