>
> > First thanks to Mike for figuring out how to use Embperl with
> > Apache::Filter. A couple of subtle things are still causing problems. I
> > have a solution for one but not for the others.
> >
> > The following line needs to be added as part of the params sent to
> > Execute:
> >
> >   $param{inputfile} = $r->filename;
>
> This is true, and it *is* in my handler.  Actually though, this
> will *fail*
> if the input that your are filtering is actually generated
> dynamically (e.g.:
> a Registry script that spits out html with embperl commands in
> it).  This is
> because of the caching mechanism of embperl.  In my case, I can
> get away with
> it by setting the $param{mtime} because all of the files I am
> filtering are
> from real files.  However, the value of $param{inputfile} can
> really be any
> random string.  This  is how you can force a recompile.  Before I
> release my
> module, I plan to implement some mechanism to force a recompile.  I will
> probably resort to some PerlSetEnv directive to set
> EMBPERL_FILTER_RECOMPILE
> or something and if that variable is set, then I'll just generate
> some random
> string and pass that as the inputfile parameter.
>

You should take a look at Apache::Filter -> changed_since method. This maybe
a solution to that problem.

Gerald



---------------------------------------------------------------
Gerald Richter      ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl

E-Mail:     [EMAIL PROTECTED]         Tel:        +49-6133/925151
WWW:        http://www.ecos.de      Fax:        +49-6133/925152
---------------------------------------------------------------

Reply via email to