New issue 21 by kevin.mccarthy: Cache file never expires
http://code.google.com/p/goobook/issues/detail?id=21
I've noticed my cache file never seems to expire. I've set it to 72 hours
in my config, but google is never re-queried.
After some debugging, the problem seems to be that
self.__config.cache_expiry_hours is of type String.
Therefore, the line doing the comparison in goobook.py:
(self.__config.cache_expiry_hours * 60 * 60)
is actually doing a string operation which creates "72727272727.......".
Attached is a patch converting cache_expiry_hours to an int before doing
the multiplication.
Attachments:
goobook.patch 707 bytes
Comment #1 on issue 21 by h...@furuvik.net: Cache file never expires
http://code.google.com/p/goobook/issues/detail?id=21
Ouch, fixed