Skip to main content
14 events
when toggle format what by license comment
Sep 1, 2020 at 12:58 comment added sonfd Which version of drupal? Which cache modules are in use? Does this happen on a fresh install of drupal? Does this happen with the bartik theme? Do you have custom code rendering or saving nodes? Do you have custom caching code? Please check these things and add all of the information to your question.
Sep 1, 2020 at 12:48 comment added sbrattla @sonf running this in a local docker environment, so nothing else than nginx and php involved.
Sep 1, 2020 at 12:47 comment added sbrattla @leymannx as far as I can tell, when you unpublish a node, the cache_table entry for that node's url alias has it's tags cleared and checksum set to 0. When you publish the node again, Drupal cannot invalidate the page cache entry because there are no tags to target. So the page cache entry is just hanging out there, resulting in stale content. At least that what seems to be happening here.
Sep 1, 2020 at 12:42 comment added leymannx I bet a hundred bucks some server-side caching is causing the issue.
Sep 1, 2020 at 12:40 review Close votes
Sep 17, 2020 at 3:03
Sep 1, 2020 at 12:32 answer added sanzante timeline score: 1
Sep 1, 2020 at 12:30 comment added sonfd Can you add which page caching modules you have enabled, also whether there are any external cache mechanisms, e.g. varnish.
Sep 1, 2020 at 12:26 comment added sbrattla @sanzante it's a plain node view. No views or anything else fancy involved.
Sep 1, 2020 at 12:26 comment added sonfd You didn't add how the node is being displayed. The cache tags only invalidate cache for things when the tags are appropriately added to render arrays.
Sep 1, 2020 at 12:25 comment added sanzante Are you on the node view or are you talking about for example a view where the node is displayed?
Sep 1, 2020 at 12:24 comment added sbrattla @leymannx updated question to reflect that. If this is already built in, it may be a bug then.
Sep 1, 2020 at 12:24 history edited sbrattla CC BY-SA 4.0
added 179 characters in body
Sep 1, 2020 at 12:19 comment added leymannx I'd like the page cache for any given node to invalidate when that node is changed. – that's already built in. But it depends how and where exactly this node is being displayed. You probably need to update your question clarifying that.
Sep 1, 2020 at 12:16 history asked sbrattla CC BY-SA 4.0