domainaware / parsedmarc

A Python package and CLI for parsing aggregate and forensic DMARC reports
https://domainaware.github.io/parsedmarc/
Apache License 2.0
961 stars 209 forks source link

Use cache in get_ip_address_info to speed up processing. #494

Closed rodpayne closed 3 months ago

rodpayne commented 3 months ago

The cache in get_ip_address_info is not doing anything because if cache is not true for the empty cache. I changed the test to if cache is not None and added the record to the cache at the end of the lookup.