- if (!$link) {
- if (DB_TYPE == "mysql") {
- print mysql_error();
- }
- // PG seems to display its own errors just fine by default.
- return;
- }
-
- init_connection($link);
-
- // We disable stamp file, since it is of no use in a multiprocess update.
- // not really, tho for the time being -fox
- if (!make_stampfile('update_daemon.stamp')) {
- print "warning: unable to create stampfile";
- }
-
- // FIXME : $last_purge is of no use in a multiprocess update.
- // FIXME : We ALWAYS purge old posts.
- //_debug("Purging old posts (random 30 feeds)...");
- //global_purge_old_posts($link, true, 30);