And after digging into the code, I found the problem, the cache was
being intended to use, but while the request was getting cached, the
response didn't, a boolean got set up:


            needs_cache = True

around line 170 in shipping.modules.canadapost.shipper but that was
never being used. Since I couldn't find why to leave it for later, I
just stuck a

            cache.set(cache_key_response, tree, 60)

right after that. It still takes a long time, but about 20seconds
instead of over a minute, and I'm sure it's other parts of satchmo
that are taking this time.

-- 
"The whole of Japan is pure invention. There is no such country, there
are no such people" --Oscar Wilde

|_|0|_|
|_|_|0|
|0|0|0|

(\__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to