Closed (fixed)
Project:
Page Title
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 May 2006 at 23:12 UTC
Updated:
23 May 2006 at 17:45 UTC
Jump to comment: Most recent file
Comments
Comment #1
robertdouglass commentedcommited to 4-7. thanks!
Comment #2
AjK commentedRobert,
Sorry for re-opening this fix but something occured to me. My fix made a call to load_node(). This is somewhat expensive (loading an entire node just to get one value, namely the page_title var) given that the node has already been loaded.
With my fix in place, the node is loaded twice and therefore may well have a major performance hit on busy sites.
I have attached a patch that correctly gets the page_title default value without having to reload the entire node again thus removing all the second unneeded database work and calls to all hook_nodeapi() functions that exist.
Again, sorry for not thinking this fix/patch through more carefully.
The above patch was made against cvs 1.1.4.5
Regards
AjK
Comment #3
robertdouglass commentedWell, you don't have to worry about the node_load because it is statically cached anyway. Despite that, your second patch looks better, so I'll apply it. Thanks for your work on the module!
Comment #4
robertdouglass commentedComment #5
(not verified) commented