Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize-Cached CPAN distribution.

Report information
The Basics
Id: 42693
Status: resolved
Priority: 0/
Queue: WWW-Mechanize-Cached

People
Owner: olaf [...] wundersolutions.com
Requestors: vitalysimul [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: CODE reference in response object
Date: Thu, 22 Jan 2009 19:29:09 -0500
To: bug-www-mechanize-cached [...] rt.cpan.org
From: Erik Aronesty <erik [...] q32.com>
I really need to do these 2 thinngs: $response->decode(); delete $response->{handlers}; Right before $cache->set( $req, freeze($response) ); Or else the thing doesn't serialize correctly. I inserted those 2 lines into my local copy of mechanize... and now it works fine. I don't think the handlers have to do with the decoding... but storing gzipped data was silly, since it slowed down the cache to the point where i thought it was broken. - Erik
On Thu Jan 22 19:29:49 2009, simul wrote: Show quoted text
> I really need to do these 2 thinngs: > > $response->decode(); > delete $response->{handlers}; > > Right before $cache->set( $req, freeze($response) ); > > Or else the thing doesn't serialize correctly. > > I inserted those 2 lines into my local copy of mechanize... and now it > works fine. > > I don't think the handlers have to do with the decoding... but storing > gzipped data was silly, since it slowed down the cache to the point > where i thought it was broken. > > - Erik
Hi Erik, I just took over maintenance of this module last night. Thanks very much for your patch. It has now been applied and is included in 1.33, which is already on CPAN. Best, Olaf