#!/usr/bin/php
<?php
- // this script is probably run not from your httpd-user, so cache
- // directory defined in config.php won't be accessible
- define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache-cli');
- define('SIMPLEPIE_CACHE_DIR', '/var/tmp/simplepie-ttrss-cache-cli');
define('DEFAULT_ERROR_LEVEL', E_ERROR | E_WARNING | E_PARSE);
define('DISABLE_SESSIONS', true);
init_connection($link);
- // Purge all posts (random 30 feeds)
- //global_purge_old_posts($link, true, 30);
-
// Update all feeds needing a update.
update_daemon_common($link);
- // Send feed digests by email if needed.
- if (DAEMON_SENDS_DIGESTS) send_headlines_digests($link);
-
db_close($link);
unlink(LOCK_DIRECTORY . "/$lock_filename");