-
Notifications
You must be signed in to change notification settings - Fork 0
Clear cache of a Node
Willi edited this page Apr 10, 2018
·
1 revision
function my_module_clear_cache($entity) {
// gets id of node entity
if($id = $entity->id()) {
$tags = ['node:' . $id];
Cache::invalidateTags($tags);
}
}
- Drupal
- Theming
- Drush
- Updates
- GIT