Intelligent pkgdb2 cache invalidation.

No risk of conflict with fedmsg-stg right?