updateCombinations

updateCombinations ( string _idLang ) : void

Update combination (attribute and combination groups) in cache. Useful to use after getAttribute for example. Use it after you add a new attribute.

Example




name="Color"
id_combination = getCombination(name)
if(!id_combination)
{
id_combination = functionNow("add_combination",[name])
updateCombinations() //Important because otherwise the next getCombination will query an obsolete cache without “Color”.
}

Parameters

_idLang (optional)

default:0 (default language)