combine node load and node save to refresh cache

Created on 2 September 2010, over 14 years ago
Updated 11 February 2024, 11 months ago

I had a situation where 2 modules I had that were being used both did a node_load and node_save call. This created a problem because the second save overwrote the first save. Since I don't want to have to clear out the cache in the function everytime it's loaded I looked for an alternative. In node.module I combined the node_save and node_load functions into one _node_operations function with a shared cache that can be updated. I'm not sure if this will work for every case in drupal but I'm sure if someone could review this patch it would be easily be fixed for that.

Feature request
Status

Closed: works as designed

Version

9.5

Component
Node system 

Last updated 4 days ago

No maintainer
Created by

🇩🇪Germany Daemon_Byte

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024