|
The only issue here is your using the category cache. I posted that the lines above in my post need to be switched around so upgradecategories is called first
I think you will find if you turn off the category cache the count is correct and in this case the change I noted will correct the issue
|