<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I just confirmed that node_load() stores loaded nodes in a static variable.</div><br><div><div>On Jan 15, 2009, at 4:53 PM, Anthony Wlodarski wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div> <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> <a href="http://www.thrillist.com">www.thrillist.com</a> <<a href="http://www.thrillist.com">http://www.thrillist.com</a>> <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 <<a href="mistknight@gmail.com">mistknight@gmail.com</a>><br> <b>Reply-To: </b><<a href="development@drupal.org">development@drupal.org</a>><br> <b>Date: </b>Thu, 15 Jan 2009 13:50:10 -0800<br> <b>To: </b><<a href="development@drupal.org">development@drupal.org</a>><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/<num>/* 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></span></font></div></blockquote></div><br></body></html>