Intelligent pkgdb2 cache invalidation.

cool, all green then :)