Problem/Motivation

This problem only affects Drupal 8. When a category has been added modified or deleted, the banner will not show the changes until cache has been cleared.

Steps to reproduce

  1. Set the banner mode to Opt in with categories
  2. Make sure caching is enabled in settings.php
  3. Add a category
  4. Open the banner

Expected result

The changes should be seen in the banner.

Actual result

We don't see the changes.

Proposed resolution

Cache for the banner needs to be cleared in code after a change has been made to the categories.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

svenryen created an issue. See original summary.

svenryen’s picture

Issue summary: View changes
svenryen’s picture

Status: Active » Needs review

neslee canil pinto’s picture

Assigned: Unassigned » svenryen

@svenryen when i am visting /admin/config/system/eu-cookie-compliance/categories i am getting the below error

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "domain" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 150 of /var/www/drupal/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php).
svenryen’s picture

Status: Needs review » Needs work
svenryen’s picture

Assigned: svenryen » neslee canil pinto
Status: Needs work » Needs review
neslee canil pinto’s picture

Status: Needs review » Reviewed & tested by the community

@svenryen tested this and works very well. Before this changes adding a category we needed to clear cache, now you changes will not need a cache clear

neslee canil pinto’s picture

Assigned: neslee canil pinto » Unassigned
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.