Name

UPS_CACHE_EXPIRE —

SYNOPSIS

DESCRIPTION

VARIABLE TYPE

Catalog variable

EXAMPLES

No examples are available at this time. We do consider this a problem and will try to supply some.

NOTES

AVAILABILITY

UPS_CACHE_EXPIRE is available in Interchange versions:

5.8.0, 5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Ship/QueryUPS.pm
Line 140 (context shows lines 130-144 in calculate():41)

}

my $string = join " AND ", @items;
my $q = qq{SELECT code,cost,updated from $tname WHERE $string};
my $ary = $db->query($q);
#::logDebug("query cache: " . ::uneval($ary));
if($ary and $ary->[0] and $cache_code = $ary->[0][0]) {
  $shipping = $ary->[0][1];
  $updated = $ary->[0][2];
  $now = time();
  if($now - $updated > $Variable->{UPS_CACHE_EXPIRE} || 86000) {
    undef $shipping;
    $updated = $now;
  }
  elsif($shipping <= 0) {

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!