zebpalmer / WeatherAlerts

Python script to parse the National Weather Service 'Cap' Alerts Feed and do interesting things with it.
MIT License
31 stars 14 forks source link

Expire cache/Reload without creating new alerts object #2

Closed zebpalmer closed 12 years ago

zebpalmer commented 12 years ago

if a program using the alerts object is long running and then the cache time logic won't be hit and thus never reloaded. need to provide method to check the age of the alerts object and reload new data after the cache maxage is reached