summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-25 18:23:41 +0100
committerAndrew Dolgov <[email protected]>2007-08-25 18:23:41 +0100
commitdab52d7bb906f38d1fd731d74ad82026b6ced9a3 (patch)
tree4d07d321cbb5f436885cbf3e32d2cd2d27f8167e /functions.php
parentc7d57b66904e894ac6d33c5caaffb94bcb450c15 (diff)
add disabled option SIMPLEPIE_CACHE_IMAGES
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 8cb2b5447..d2f04216a 100644
--- a/functions.php
+++ b/functions.php
@@ -178,9 +178,14 @@
}
// purge orphaned posts in main content table
- db_query($link, "DELETE FROM ttrss_entries WHERE
+ $result = db_query($link, "DELETE FROM ttrss_entries WHERE
(SELECT COUNT(int_id) FROM ttrss_user_entries WHERE ref_id = id) = 0");
+ if ($do_output) {
+ $rows = db_affected_rows($link, $result);
+ _debug("Purged $rows orphaned posts.");
+ }
+
}
function purge_old_posts($link) {
@@ -470,6 +475,10 @@
$rss->set_feed_url($fetch_url);
$rss->set_output_encoding('UTF-8');
+/* if (SIMPLEPIE_CACHE_IMAGES) {
+ $rss->set_image_handler('./image.php', 'i');
+ } */
+
if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) {
_debug("feed update interval (sec): " .
get_feed_update_interval($link, $feed)*60);