- First commit to issue fork.
- 🇬🇧United Kingdom stephen-cox
Issue with the footnotes block looks to be due to the cache keys not being set correctly. I've added cache keys, tags and context to the render array built by the FootnotesGroupBlock which fixes the cache issue for me.
- 🇺🇸United States matthand Riverdale Park, Maryland
This is reroll of the patch file from comment 71 against the latest release 3.1.
- Merge request !7Issue #3098138: All footnotes available as block for Layout Builder / Paragraph / ... → (Merged) created by dave reid
- 🇮🇳India JaydipJD surat
Created patch from Merge request 7(https://git.drupalcode.org/project/footnotes/-/merge_requests/7) to use till latest changes got merge and new version release.
- 🇺🇸United States dave reid Nebraska USA
I've been thoroughly testing this change out with and without caching, dynamic page caching, and big pipe enabled or not and confirmed this is working.
- last update
over 1 year ago Composer config failure - last update
over 1 year ago 3 fail - last update
over 1 year ago run-tests.sh fatal error - last update
over 1 year ago Build Successful - last update
over 1 year ago 4 fail - last update
over 1 year ago run-tests.sh fatal error - last update
over 1 year ago run-tests.sh fatal error - last update
over 1 year ago 4 fail - Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.4 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - last update
over 1 year ago 3 fail - Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.4 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - last update
over 1 year ago 3 fail - Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.4 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass - 🇪🇸Spain jjcarrion Spain
Hi,
I'm still experiencing those cache issues with latest patches.
- Clear caches
- First load -> Footnotes are there
- Second load -> Footnotes are gone forever (until next cache clear or invalidation)
After some debugging I have seen that the plugin is not collecting the footnotes after the cache is clear. I have seen in the annotation of the FootnotesFilter.php that there is a "* cache = FALSE," but it seems that the plugin is cached anyway.
I have added a $result->setCacheMaxAge(0); into the process() of the FootnotesFilter.php so it's processed always and not just when we clear caches.
Attached the patch from the MR7 + the cache max-age=0
- Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.4 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass - 🇺🇸United States chaseconklin
I was running into an issue with the patch from #79 📌 All footnotes available as block for Layout Builder / Paragraph / ... Needs review where the footnotes-multi links would display even on footnotes with one reference. I have updated the patch to only show the footnote-multi links when there are multiple references.
- Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.4 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass - 🇬🇧United Kingdom scott_euser
Going to merge this into 4x and created a follow-up here 📌 Follow-up to all footnotes available as a block to apply to modal plugin Active to apply to modal plugin to apply it to the new modal version before the old one gets retired. Patches still needed while on 3x until 4x (and its upgrade path are more stable).
-
scott_euser →
committed bc24dd72 on 4.0.x authored by
Dave Reid →
Issue #3098138 by cmconklin: All footnotes available as block for Layout...
-
scott_euser →
committed bc24dd72 on 4.0.x authored by
Dave Reid →
- Status changed to Fixed
11 months ago 12:48pm 8 January 2024 - 🇺🇸United States richardbporter
I think the
$result->setCacheMaxAge(0);
is unnecessary and will break page cache. Setting the entity context_definitions in the block configuration seemed like it was required for caching to work properly: - 🇬🇧United Kingdom scott_euser
Thanks for the feedback! I believe we have that looking at FootnotesGroupBlock; it attempts to load the current entity as a cache context and merges that meta data into the build. Though since it is not required, perhaps at the very least we should document that that should be selected. I am not sure it makes sense to require it as I imagine there are cases where someone could use Footnotes in a non-node/non-entity context. I made a note of that here: https://www.drupal.org/project/footnotes/issues/3413186 📌 Improve documentation of footnotes features and upgrade path Active
I have left out the merge of setCacheMaxAge(0), and it can be picked up in a follow-up issue if needed, but I agree that it makes sense to cache as much as we can by default as a starting point.
Automatically closed - issue fixed for 2 weeks with no activity.