Only invalidate caches for resources within projects