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
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

mercmobily - July 22, 2009 - 18:22

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

drupalina - August 7, 2009 - 18:01

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

ajayg - August 18, 2009 - 17:04

Any update on this? I still don't see this commited yet.

#4

Ouark - August 24, 2009 - 23:25

Excuse-me, can you delete my post, I was reply in wrong issue.

Thank you.

 
 

Drupal is a registered trademark of Dries Buytaert.