parent
49d56480b8
commit
95f4be8b68
|
|
@ -109,6 +109,8 @@ class UserPreferencesModel extends SettingsModel
|
|||
*/
|
||||
protected function getCacheKey()
|
||||
{
|
||||
return 'backend::userpreferences.'.$this->recordCode;
|
||||
$item = UserPreferences::forUser();
|
||||
$userId = $item->userContext ? $item->userContext->id : 0;
|
||||
return $this->recordCode.'-userpreference-'.$userId;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue