summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-11-29 14:55:03 +0400
committerAndrew Dolgov <[email protected]>2012-11-29 14:55:03 +0400
commit765509c5728e35d4b8c477798621bea38574bfcf (patch)
treeaaa5a47b910e5d80cdc8b6675cccdab4a16281b9
parent8054439f47c8510a3064321807d78619b30350c9 (diff)
create separate guids for cached and authorized content to prevent unnecessary data sharing
-rw-r--r--include/rssfuncs.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 1a0eb5f1f..c1fd45109 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -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'))