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 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 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 commentedIndeed! New patch attached.
Comment #7
borisson_Thanks for the issue and the patches. Awesome work.