Re: MasonHQ node caching, and other bugs

Soren Dossing <[email protected]>
Newsgroups gmane.comp.web.mason.devel
Message-ID <20050527102837.U39541@localhost>
I finally found a simple solution that works for me; to delete node object 
data by the end of each request.

   ~$ diff -c htdocs/node/autohandler{.dist,}
   *** htdocs/node/autohandler.dist        Thu May 26 17:53:26 2005
   --- htdocs/node/autohandler     Fri May 27 09:55:22 2005
   ***************
   *** 28,31 ****
   --- 28,32 ----
         clear_and_abort(404);
     }
     $m->call_next(node=>$node);
   + undef $node;
     </%init>
   ~$

No other changes are necessary. With this I can no longer reproduce the 
node caching problem, and there is no noticable performance impact. The 
problem might reoccur if a page is aborted before completing, but it will 
be only once.

Thanks for your patience, and sorry to those of you that I bothered.

Soren


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.