Ignore:
Timestamp:
2011/03/18 17:22:10 (13 years ago)
Author:
shutta
Message:

refs #1173
カテゴリーカウント処理が重い
product_count=0の場合に、変更されていないのに、差分対象カテゴリーに入ってしまうのを改良。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/helper/SC_Helper_DB.php

    r20595 r20718  
    707707        //削除カテゴリを想定して、古いカテゴリ一覧から見て商品数が異なるデータが無いか確認。 
    708708        foreach($arrOld as $cid => $count){ 
    709             if($arrNew[$cid] != $count){ 
     709            if($arrNew[$cid] != $count && $count > 0){ 
    710710                $arrDiffCategory_id[] = $cid; 
    711711            } 
     
    785785            } 
    786786        } 
    787         // トランザクション終了処理 
     787        // トランザクション終了処理 
    788788        if($is_out_trans) { 
    789789            $objQuery->commit(); 
Note: See TracChangeset for help on using the changeset viewer.