Performance problem in uc_option_image_nodeapi

ogorun - October 17, 2009 - 16:58
Project:Ubercart Option Images
Version:6.x-1.4
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:performance nodeapi
Description

uc_option_image_nodeapi() doesn't check whether it tries to make changes to product object. So it waste time on dealing with nodes of inappropriate types: page, story...

To fix this node type check should be performed before any action.

See attached patch that solves this problem (patch is created on base of version 6.x-1.4)

AttachmentSize
nodeapi_performance.patch921 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.