Steve Harman, a Subtext Developer, writes up a helpful description of how to use the varyByCustom parameter of the PartialCachingAttribute.