When an entity is rendered inside an ajax popup after a marker is clicked, its rendered cache is not being updated properly as the only cache tag it has is http_response when page cache is active.

  1. As anomymous: Click on any marker to show the information of an entity
  2. As admin: change the title of the clicked entity
  3. As anoymous: Reload the page and click on the same marker.
  4. No changes, the rendered cache for the entity has not been invalidated as expected.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

BetoAveiga created an issue. See original summary.

BetoAveiga’s picture

To solve the issue it is possible to add the entity as a cacheable dependency of the html response.

marcoscano’s picture

Status: Active » Reviewed & tested by the community

👍 Looks good to me!

itamair’s picture

Status: Reviewed & tested by the community » Needs review

thanks @BetoAveiga nice contribution ... committed into dev, being part of the next release.

  • itamair committed 68b7206 on 8.x-2.x authored by BetoAveiga
    Issue #3103249 by BetoAveiga: Improve page cache invalidation for Ajax...
itamair’s picture

Category: Feature request » Bug report
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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