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 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.
Comment | File | Size | Author |
---|---|---|---|
#6 | profile-load-profile.patch | 1.37 KB | jds |
#2 | profile.module-6.19-profile_load_static_cache.patch | 969 bytes | pounard |
profile.module-6.19-profile_load_static_cache.patch | 721 bytes | pounard | |
Comments
Comment #2
pounardDone a new patch with CVS diff.
Comment #3
jide CreditAttribution: jide commentedLet's make the bot work a little.
Comment #4
pounardBad idea, this patch still won't pass, it has not been done using the full file path.
Comment #6
jds CreditAttribution: jds commentedThis patch addresses the same issue but is a slightly different approach. Let me know if you have issues.
Comment #7
3dloco CreditAttribution: 3dloco commented+1