Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When you create a block in Facets and save it, it's not immediately visible in the blocks section of Drupal.
After clearing the cache, it becomes visible.
Proposed resolution
After saving the facet, clear the caches.
Comment | File | Size | Author |
---|---|---|---|
#6 | facet_block_not-2661724-6.patch | 482 bytes | Novitsh |
#4 | facet_block_not-2661724-4.patch | 684 bytes | Novitsh |
Comments
Comment #2
Novitsh CreditAttribution: Novitsh at Colruyt Group Services commentedSuggestion patch attached.
Comment #3
borisson_The patch you suggested is way too aggressive, we should only clear cache for the relevant cache tags and use Cache::invalidateTags(); instead.
Comment #4
Novitsh CreditAttribution: Novitsh at Colruyt Group Services commentedNow making use of the plugin.manager.block service to clear only the block caches.
Comment #5
borisson_Noticed one small thing, but that can be fixed on commit. Looks great otherwise.
The use is not needed anymore.
Comment #6
Novitsh CreditAttribution: Novitsh at Colruyt Group Services commentedIndeed! New patch attached.
Comment #7
borisson_Thanks for the issue and the patches. Awesome work.