Fix bug with job cache not deleting expired entries