[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fenfire-dev] about caching and testing
From: |
Tuomas Lukka |
Subject: |
Re: [Fenfire-dev] about caching and testing |
Date: |
Mon, 15 Sep 2003 20:41:03 +0300 |
User-agent: |
Mutt/1.5.4i |
On Sun, Sep 14, 2003 at 12:14:15PM +0300, Tuomas Lukka wrote:
> On Sat, Sep 13, 2003 at 08:10:47AM +0300, Asko Soukka wrote:
> > I fixed FenMM (org.fenfire.demo.mm) to use the new api, but got a
> > problem with caching: usually the content of nodes didn't update at
> > all, sometimes the content updated while editing, but after I moved to
> > an another node, the node returned to show the old content. I wonder,
> > if someone can the problem in the following code. Mudyc said that
> > there is no need for explicit freeing of the changed node from the
> > cache.
>
> Yes, there certainly shouldn't be.
>
> The accursed nodes come from a different cache so changing back is what
> will happen if that cache is not getting updated...
>
> Hmm, your having the ContentFunction cache of size 1 may be tickling some
> bug...
>
> ... AHH, found it. SuperFunctional's Cache entry has
>
> public void chg() {
> if(closed) {
> p("chg closed entry");
> return;
> }
> super.chg();
> }
Fixed now, in CVS. Could you try again with the cache size 1 to see if the
problem
still exists?
Tuomas