mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
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:
commit
7775abb078
@ -2272,7 +2272,11 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
*/
|
*/
|
||||||
protected function generateHintsCacheKey($memberID)
|
protected function generateHintsCacheKey($memberID)
|
||||||
{
|
{
|
||||||
return md5($memberID . '_' . __CLASS__);
|
$baseKey = $memberID . '_' . __CLASS__;
|
||||||
|
|
||||||
|
$this->extend('updateHintsCacheKey', $baseKey);
|
||||||
|
|
||||||
|
return md5($baseKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user