Implement caching
This commit is contained in:
@@ -96,6 +96,11 @@ class ArchiveTreeBlock extends BlockBase {
|
|||||||
'archive_tree/archive_tree_styles',
|
'archive_tree/archive_tree_styles',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
'#cache' => [
|
||||||
|
'contexts' => ['user', 'languages'],
|
||||||
|
'tags' => ['node_list'],
|
||||||
|
'max-age' => -1,
|
||||||
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user