Index: trunk/kernel/include/cachecount.php =================================================================== diff -u -r748 -r1248 --- trunk/kernel/include/cachecount.php (.../cachecount.php) (revision 748) +++ trunk/kernel/include/cachecount.php (.../cachecount.php) (revision 1248) @@ -202,6 +202,20 @@ $c->Delete(); } } + + function EraseGlobalTypeCache($ItemType) + { + global $objItemTypes; + + $db = &GetADODBConnection(); + if( !is_numeric($ItemType) ) + { + $sql = 'SELECT ItemType FROM '.$objItemTypes->SourceTable.' WHERE ItemName=\''.$ItemType.'\''; + $ItemType=$db->GetOne($sql); + } + $sql='DELETE FROM '.$this->SourceTable.' WHERE ItemType='.$ItemType.' AND ListType=0'; + $rs = $db->Execute($sql); + } function IncrementParentValues($ValueName,$CatList,$IncVal=1) {