Permalink
Browse files

Add optional cache exprire variable as pointed out here: http://www.i…

…cdevgroup.org/pipermail/interchange-users/2003-June/033985.html

Signed-off-by: Peter Ajamian <peter@pajamian.dhs.org>

Author:    Steve Graham <icdev@mrlock.com>
  • Loading branch information...
1 parent f69e9c2 commit fc5752e2e5a962a71ed117e0450a036ee5f141eb @dtlgc dtlgc committed with Sep 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Vend/Ship/QueryUPS.pm
@@ -137,7 +137,7 @@ sub calculate {
$shipping = $ary->[0][1];
$updated = $ary->[0][2];
$now = time();
- if($now - $updated > 86000) {
+ if($now - $updated > $Variable->{UPS_CACHE_EXPIRE} || 86000) {
undef $shipping;
$updated = $now;
}

0 comments on commit fc5752e

Please sign in to comment.