Hot answers tagged


You need to add cache contexts to your block. Cache contexts tell Drupal that the block needs to be cached differently for different circumstances. In your case, whether or not the user is logged in. you can read more about it here:

Only top voted, non community-wiki answers of a minimum length are eligible