perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <>
Subject RE: Embperl::Object doesn't cache app object correctly?
Date Tue, 09 Aug 2005 12:16:25 GMT
> > 
> > And rerun the test.
> Attached.  this bit looks interesting:
> *file:/home/gus/public_html/gus/*epparse:Text; 
> expires_in=0 expires_func=no expires_filename= cache=no

This is the interesing line, which shows that the syntax of the application
object was switched to Text. This will cause a recompile and for this reason
a new package name (because, of course, running with syntax Perl and syntax
Text gives different results and needs to be cached separately).

Embperl::Object call your application object always with syntax => Perl. The
only way this could change is, when you have overloaded the get_recipe
method in your application object. So the first time it works, because
get_recipe in not in place, on the second call get_recipe is in place,
changes the syntax to Text when the application object is to be executed,
for this reason it could not be found in the cache and will get recompiled
in a new package.

Does this make sense?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message