]> git.wh0rd.org Git - tt-rss.git/commitdiff
create separate guids for cached and authorized content to prevent unnecessary data...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 29 Nov 2012 10:55:03 +0000 (14:55 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 29 Nov 2012 10:55:03 +0000 (14:55 +0400)
include/rssfuncs.php

index 1a0eb5f1f6656c910d1750905adf83e9b82c2d9d..c1fd45109aa0ac7c377ce7ca9185e2e18107a9f3 100644 (file)
                                        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");
                                }
                                                        _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'))