[ic] ups_cache expires

Mike Heins mike at perusion.com
Thu Feb 2 14:37:58 EST 2006

Quoting Steve Graham (icdev at mrlock.com):
> Hello,
> Bill Carr had  a good idea here:
> http://www.icdevgroup.org/pipermail/interchange-users/2003-June/033985.html
> >>>
> Line 76
> if($now - $updated > $Variable->{UPS_CACHE_EXPIRE} || 86000) {
> <<<
> Might as well let the user select the time frame to keep the cache, 
> or let UPS_CACHE_EXPIRE be a multiple of 86000 to approximate the 
> number of days.
> Any reason 30 (86000*30) days wouldn't work - maybe even 90 days.
> UPS doesn't change rates that often, and we aren't concerned about 
> the data accumulation.

They do sometimes change fuel surcharges and areas covered by Xarea.
Also, you would need to closely watch things in early February when
rates do change.

I think a day is reasonable, actually. It should cut load dramatically
without problems with wrong rates.

Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.647.1295  tollfree 800-949-1889 <mike at perusion.com>

I am convinced that life is 10% what happens to me and 90%
how I react to it. And so it is for you... we are in charge
of our attitudes. -- Charles Swindoll

More information about the interchange-users mailing list