I did some SQL profiling using the devel module, and saw that the profile module sometimes does load more than once profile fields on the same user instance. I did not manage to find which was the real cause (calling more than once the function over the same user instance, it might be a buggy module) but I managed to do a simple patch that avoid these queries to happen, without breaking the normal behavior.

Hope it can help.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch, profile.module-6.19-profile_load_static_cache.patch, failed testing.

pounard’s picture

Done a new patch with CVS diff.

jide’s picture

Status: Needs work » Needs review

Let's make the bot work a little.

pounard’s picture

Bad idea, this patch still won't pass, it has not been done using the full file path.

Status: Needs review » Needs work

The last submitted patch, profile.module-6.19-profile_load_static_cache.patch, failed testing.

jds’s picture

FileSize
1.37 KB

This patch addresses the same issue but is a slightly different approach. Let me know if you have issues.

3dloco’s picture

+1

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.