user_materio user_block cache max-age 0
This commit is contained in:
parent
5c40959059
commit
8b2c26774f
@ -50,6 +50,11 @@ class UserBlock extends BlockBase implements ContainerFactoryPluginInterface{
|
||||
*/
|
||||
public function build() {
|
||||
$build = [];
|
||||
|
||||
$build['#cache'] = [
|
||||
'max-age' => 0,
|
||||
];
|
||||
|
||||
// dpm($this->user);
|
||||
if($this->user->id()){
|
||||
$user_url = Url::fromRoute('entity.user.canonical', ['user' => $this->user->id()]);
|
||||
@ -76,6 +81,8 @@ class UserBlock extends BlockBase implements ContainerFactoryPluginInterface{
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
return $build;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user