Index: branches/5.2.x/core/units/categories/cache_updater.php =================================================================== diff -u -N -r14244 -r14699 --- branches/5.2.x/core/units/categories/cache_updater.php (.../cache_updater.php) (revision 14244) +++ branches/5.2.x/core/units/categories/cache_updater.php (.../cache_updater.php) (revision 14699) @@ -1,6 +1,6 @@ GetInsertSQL()) { + $sql = $data['perms']->GetInsertSQL(); + + if ( $sql ) { $this->Conn->Query($sql); // $this->doneCats++; // moved to the place where it pops out of the stack by Kostja } @@ -517,15 +519,19 @@ /** * Rebuild all cache in one step * + * @param string $path + * @return void */ function OneStepRun($path = '') { $this->InitUpdater(); $needs_more = true; + while ($needs_more) { - // until proceeeded in this step category count exceeds category per step limit + // until proceeded in this step category count exceeds category per step limit $needs_more = $this->DoTheJob(); } + $this->SaveData(); } } \ No newline at end of file