1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-20 11:16:36 +02:00

create separate guids for cached and authorized content to prevent unnecessary data sharing

This commit is contained in:
Andrew Dolgov 2012-11-29 14:55:03 +04:00
parent 8054439f47
commit 765509c572

View File

@ -523,6 +523,14 @@
if (!$entry_guid) $entry_guid = make_guid_from_title($item["title"]);
}
if ($cache_content) {
$entry_guid = "ccache,$owner_uid:$entry_guid";
}
if ($auth_login || $auth_pass) {
$entry_guid = "auth,$owner_uid:$entry_guid";
}
if ($debug_enabled) {
_debug("update_rss_feed: guid $entry_guid");
}
@ -810,9 +818,6 @@
_debug("update_rss_feed: caching content (initial)...");
}
// give the publisher some time to put stuff online
sleep(10);
$entry_cached_content = cache_content($link, $entry_link, $auth_login, $auth_pass);
if ($cache_images && is_writable(CACHE_DIR . '/images'))