Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have managed to print the CCK Field in some Node Types.
Problem is that when new Nodes are added, old ones do not update the RC CCK Field.
I need to Edit and Save those Nodes in order to achieve that.
I guess this is related to CCK cache, but I didn't find solid information there and I want to make sure it isn't RC related.
How can I make this RC CCK Field (and preferably only this) update every time a new Node is created. Maybe with every cron run, but I have no idea how to do that.
Thanks in advance for your help.
Comments
Comment #1
nicholasThompsonI would imagine you're right - it'll be related to the caching.
What is your site's caching configuration? I could look into adding a feature to flush the RC field cache on node insert/update...
Alternatively, the Devel module has an Empty Cache feature, you can just visit the modules page (which flushes the cache) or there is a flush cache button on the site performance settings page.
Comment #2
realOFF CreditAttribution: realOFF commentedMy site's cache config is as follow:
Cache mode: Normal
Minimum...: None
Page compression: Enabled
All the rest: Disabled
I guess that clearing or disabling the site's cache will slow performance down, so I have not tried that yet.
The feature you mention, will reload every RC CCK field (on every node) any time a Node is created or updated?
Thanks for your time.
Comment #3
nicholasThompsonSo basically... On a node insert/update we need to:
content:[nid]:*
entries fromcache_content
.I think that covers it. I'd probably make this an option in the settings or performace settings for the site so that people could enable it. It's not ideal to have large chunks of cache wiped on busy sites.
I guess a better option is to reduce the cache validity time and simply let the update propagate out?
Nick
Comment #4
realOFF CreditAttribution: realOFF commentedThanks Nick! I'd love to see this implemented. ;)
Comment #5
tormu CreditAttribution: tormu commentedAny info on this? I'm seeing a load of unpublished nodes on my relevant content lists :(