Index: trunk/core/units/categories/cache_updater.php =================================================================== diff -u -r5164 -r5165 --- trunk/core/units/categories/cache_updater.php (.../cache_updater.php) (revision 5164) +++ trunk/core/units/categories/cache_updater.php (.../cache_updater.php) (revision 5165) @@ -149,17 +149,22 @@ $this->iteration = 0; $this->table = $this->Application->GetTempName('permCacheUpdate'); - if (!$continuing) { - $this->Stack =& new clsRecursionStack(); - $sql = 'DELETE FROM '.TABLE_PREFIX.'PermCache'; - $this->Conn->Query($sql); - $this->initData(); + if ($continuing == 1) { + $this->InitUpdater(); } - else { + elseif ($continuing == 2) { $this->getData(); } } + function InitUpdater($continue) + { + $this->Stack =& new clsRecursionStack(); + $sql = 'DELETE FROM '.TABLE_PREFIX.'PermCache'; + $this->Conn->Query($sql); + $this->initData(); + } + function getDonePercent() { if(!$this->totalCats)return 0; @@ -179,7 +184,6 @@ else { $this->Stack = & new clsRecursionStack(); } - } function setData()