[ic] Timed-build and Locked-Out sessions.
Kevin Walsh
kevin at cursor.biz
Mon Aug 7 21:44:43 EDT 2006
Carl Bailey <carl at triangleresearch.com> wrote:
> What we needed was a protection in the timed-build tag that prevents it
> from writing a new file if do_lockout has been triggered. We came up
> with the following change to the timed_build tag in Interpolate.pm:
>
> --- Vend::Util::writefile(">file",$out,$opt);
> +++ Vend::Util::writefile(">$file", $out, $opt )
> +++ unless $Vend::Cfg->{VendURL} eq 'http://127.0.0.1';
>
> We have tested this and it has worked successfully in our IC 5.4
> environment.
>
Spiders won't be using cookies, so they shouldn't read from, or create,
the [timed-build] cache at all. Well, that's unless you're using the
force=1 parameter, of course.
All the same, your patch looks like a reasonable thing to be checking
for, but we might to check for it in a slightly different way. Without
having tested it, I would suggest the following:
--- Interpolate.pm 30 Jul 2006 23:37:38 -0000 2.272
+++ Interpolate.pm 8 Aug 2006 01:41:56 -0000
@@ -5105,6 +5105,7 @@
if (defined $opt->{if}) {
$abort = 1 if ! $opt->{if};
}
+ $abort = 1 if $Vend::Cfg->{VendURL} eq 'http://127.0.0.1';
my $saved_file;
if($opt->{scan}) {
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the interchange-users
mailing list