//This file will re create your archives and generate your cache. include ROOT_DIR . "/" . INC_DIR . "/make_archive.php"; $t1 = microtime(true); echo '<li>Archive creation : '; flush_buffers(); write_archive(); echo '<!-- Time write archive: ', microtime(true) - $t1, " -->\n"; echo '<font color="green">DONE</font></li>' . "<br />\n"; flush_buffers(); include ROOT_DIR . '/' . INC_DIR . "/make_cache.php"; $t1 = microtime(true); set_time_limit(0); echo '<li>Cache creation/update :'; flush_buffers(); write_cache(); set_time_limit(30); echo '<!-- Time make cache: ', microtime(true) - $t1, " -->\n"; echo '<font color="green">DONE</font></li>' . "<br />\n"; flush_buffers(); include ROOT_DIR . '/' . INC_DIR . "/make_feed.php"; $t1 = microtime(true); echo '<li>Feed creation/update : '; flush_buffers(); write_feed(); echo '<!-- Time make feed: ', microtime(true) - $t1, " -->\n"; echo '<font color="green">DONE</font></li>' . "<br />\n"; flush_buffers(); echo 'The blog is updated, you may <a href="' . URL . '">go back</a>.' . "<br>\n"; echo '<!-- Total: ', microtime(true) - $total, " -->\n"; echo '<!-- Memory Consumption: ', memory_get_usage(true), "(bytes) -->\n"; echo "<ul></body></html>\n";
write_entry($entry); echo '</pre>'; echo '</p>'; echo '<p>'; // Remember the id because we will delete it later // I would like to just get the id value, but it is the uri $segments = explode('/', $entry->id[0]->value); $id = $segments[count($segments) - 1]; /***********************************************/ /* Retrieve the feed. */ /***********************************************/ echo '<p>'; echo '<b>Testing Enumeration<br/></b>'; $feed = $contact_service->enumerate(); echo '<pre>'; write_feed($feed); echo '</pre>'; echo '</p>'; echo '<p>'; /***********************************************/ /* Retrieve entry with id = 1 (Note: this must */ /* have been previously created in the */ /* database. */ /***********************************************/ echo '<p>'; echo '<b>Testing Retrieve<br/></b>'; echo 'Retrieving the entry with id = 1.<br/>'; $entry = $contact_service->retrieve(1); echo '<pre>'; write_entry($entry); echo '</pre>';