Merge pull request #2442 from creative-commoners/pulls/4.2/extensible-sitetree-hints-cache-key

NEW Add updateHintsCacheKey extension point to fix invalid caching
This commit is contained in:
Robbie Averill 2019-05-31 13:35:39 +12:00 committed by GitHub
commit 7775abb078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2272,7 +2272,11 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
*/
protected function generateHintsCacheKey($memberID)
{
return md5($memberID . '_' . __CLASS__);
$baseKey = $memberID . '_' . __CLASS__;
$this->extend('updateHintsCacheKey', $baseKey);
return md5($baseKey);
}
/**