Closed (outdated)
Project:
Drupal core
Version:
6.x-dev
Component:
user.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2010 at 15:37 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent
Comments
Comment #1
dawehnerThe problem here is that user_load has no static cache, so everything which does a user_load run's the hook.
I think this is not fixable on d6, because it could change existing behavior.
But this is already fixed on d7.
Comment #2
clemens.tolboom@dereine: Were is this fixed in D7
If have this multiple load for
I found out
is called 4 times too. Done by a mixture of
and
Should I report a new issue?
Comment #3
dawehnerWell in d7 user_load uses user_load_multiple which uses entity_load which has a static cache.
Comment #4
NROTC_Webmaster commentedIs this still an issue or can it be closed?
Comment #5
ispboy commentedIn most of cases, we pass $uid to user_load($user_info), so i hack the user.module to build a static array keeping the result with $uid key. it works!