BUGFIX: Ensure that DataObject::get_one() cache knows which subsite you're on (from r93096) (from r96337)

This commit is contained in:
Tom Rix 2010-03-01 22:32:15 +00:00
parent 7881338c2f
commit bd24b7aec7

View File

@ -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();
}
}
?>