Closed (fixed)
Project:
Drupal core
Version:
4.7.x-dev
Component:
node system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Dec 2006 at 09:55 UTC
Updated:
5 Jan 2007 at 00:03 UTC
Jump to comment: Most recent file
Comments
Comment #1
jvandyk commentedHere's a slightly modified patch that simply moves the $cachable test inside the if($node->nid) test. No sense testing it twice.
Note that this patch changes behavior when the node_load() misses (i.e., you query for a node that's not there or doesn't match). Formerly we cached node misses for calls like node_load($non_existing_nid). Now we don't. I don't think that is a great loss; I'm not sure it was even ever intended.
Comment #2
dries commentedCommitted to CVS HEAD. Thanks folks.
Comment #3
killes@www.drop.org commentedbackported.
Comment #4
(not verified) commented