The CCK caching fix was not incorporated in 6x
drupalina - July 13, 2009 - 01:48
| Project: | Drigg |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi,
If you remember, last year we had a whole series of problems with CCK imagefield and all other fields not displaying.
On my live site (Drigg 5x) I have had the following fix for many months now: http://www.drigg-code.org/node/611 It works without any problems!
But I noticed that it was not incorporated into 6.x!!!
I tried that code in my 6x-dev of drigg.module and it works perfectly too.
Please incorporate this fix into drigg.module for 6.x
Thank you.

#1
Hi,
OH MY GOD.
YOU FIXED THE CCK PROBLEM!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!
I... I...
I will commit to CVS ASAP.
I... I...
Thank you!! :-D
Please email and pester me tomorrow in case I am taking too long to fix this.
THANKS!
Merc.
#2
Hi,
(I didn't do the fix. Some other drigger did and I just put it on my 5.x site, and it works for 6.x too)
It seems like this code has not been implemented in Drigg-dev yet
The fix:
In the file "\sites\all\modules\drigg\drigg\drigg.module"
change:
function drigg_insert($node) {
drigg_insert_or_update($node, "insert");
}
to:
function drigg_insert($node) {
drigg_insert_or_update($node, "insert");
// CCK bug work around. We clear the cache so CCK fields will appear in the post.
$cid = 'content:'. $node->nid .':'. $node->vid;
cache_clear_all($cid, 'cache_content');
}
So far this has worked OK in my testing.
looking forward to new drigg 6x dev
#3
Any update on this? I still don't see this commited yet.
#4
Excuse-me, can you delete my post, I was reply in wrong issue.
Thank you.