Hans Dieter Pearcey a écrit : > > <%once> blocks only run once (as the name implies), when the component > > is > > loaded (see HTML::Mason::Devel). I'd only expect your first request to > > get the > > $m->notes entry, and subsequent requests not to have it (until you > > restart your > > server), because $m->notes is per-request.
> Oh I see ! Didn't understand "run once" that way. It's strange though > cause I've had the $m->notes entry working several times without > restarting the server. Replacing the block with a <%init> one > seems to solve the problem (I'm getting prudent). Yes, that's normal. <%once> blocks are run once...per Perl interpreter. So, if your second request is not using the same Perl interpreter as the first request, the <%once> block will be run again, and so, your $r->notes call as well. This can depend on several factors, including the number of Perl interpreters you are starting and using. (PerlInterp* Apache directives) That can sound a bit strange, but that's normal, as each interpreter has got its own block of memory. Lionel. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users