[EMAIL PROTECTED] wrote:
> Does embperl support fulling caching its output (not just its
> compile), something like what could be accomplished with:
>
> [! use Memoize; memoize('Execute') !]
> [+ my $x; Execute {inputfile=>'myEmbperl.html', out=>\$x}; $x +]
>
> Does anybody actually have experience with using memoize and embperl?
> :)
>
I have never have tried memoize, but EMbperl 2 supports output cacheing out
of the box and it automaticly invalidates the cache if your source changes
and keeps track of parameters you posted to the page etc. There are a lot of
cacheing options in Embperl 2, the simplest is to say
[+ Execute ({inputfile=>'myEmbperl.html', expires_in => 60}) -]
which will cache the output for 60 seconds, you can also supply a function
that is called to determinate if the cache should be expired
Gerald
--------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
IT-Securityl�sungen * dynamische Webapplikationen * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 939-122
WWW: http://www.ecos.de/ Fax: +49 6133 939-333
--------------------------------------------------------------
|
| ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]