diff --git a/code/SiteTreeSubsites.php b/code/SiteTreeSubsites.php index c9d649f..cbf74a8 100644 --- a/code/SiteTreeSubsites.php +++ b/code/SiteTreeSubsites.php @@ -411,6 +411,13 @@ class SiteTreeSubsites extends SiteTreeDecorator { $this->owner->CrossSubsiteLinkTracking()->setByIDList($linkedPages); } + + /** + * Return a piece of text to keep DataObject cache keys appropriately specific + */ + function cacheKeyComponent() { + return 'subsite-'.Subsite::currentSubsiteID(); + } } ?>