#!/usr/bin/php update(); if (!$r1) { echo "EGG::update failed.\n"; exit(99); } echo "\n"; echo "============================= Check Consistency =============================\n"; echo "\n"; $r2 = $egg->checkDatabaseConsistency(); if (count($r2) > 0) { echo "EGG::updateCache failed."; foreach ($r2 as $msg) { echo " > $msg"; } exit(99); } echo "\n"; echo "============================= Update Cache =============================\n"; echo "\n"; $r3 = $egg->updateCache(); if (!$r3) { echo "EGG::updateCache failed."; exit(99); } echo "\n"; echo "==============================================================================\n"; echo "\n"; echo "Done.\n"; exit(0);