<HTML>
<HEAD>
<TITLE>Re: [development] load node globally</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I believe any further calls to node_load with the same node id are cached.<BR>
<BR>
-Anthony<BR>
-- <BR>
Anthony Wlodarski<BR>
www.thrillist.com &lt;<a href="http://www.thrillist.com">http://www.thrillist.com</a>&gt; <BR>
Web Applications Developer<BR>
568 Broadway Ste. 605<BR>
New York, NY, 10012<BR>
(o) 646.786.1944<BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"><B>From: </B>Ashraf Amayreh &lt;<a href="mistknight@gmail.com">mistknight@gmail.com</a>&gt;<BR>
<B>Reply-To: </B>&lt;<a href="development@drupal.org">development@drupal.org</a>&gt;<BR>
<B>Date: </B>Thu, 15 Jan 2009 13:50:10 -0800<BR>
<B>To: </B>&lt;<a href="development@drupal.org">development@drupal.org</a>&gt;<BR>
<B>Subject: </B>[development] load node globally<BR>
<BR>
Hello All,<BR>
<BR>
Since I see so many node loads in block visibility and in modules that do $node manipulations and so forth, which would make me think that sometimes many node loads might occur on some pages and tens perhaps when you add contributed modules on that, I was wondering why not just load $node globally on node/&lt;num&gt;/* pages like we do with $user to avoid any extra node_loads? Developers would only need to global $node and it would either be null or populated and ready.<BR>
<BR>
Before creating a patch for a *possibly* terrible idea, I thought I'd raise a stick and see if it gets shot :D<BR>
<BR>
-- <BR>
Ashraf Amayreh<BR>
<a href="http://aamayreh.org">http://aamayreh.org</a><BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>