Intelligent pkgdb2 cache invalidation.