Drop expired failures when displaying config

When the user opens the configuration dialog and that dialog asks for
the failure count, go through the cache and dump any items that are
expired before returning a count.