fix for bug 204: photo IDs are sometimes disabled
fix for parts of bug 231: invalidate key cache after downloading key(s)