wait a bit before initial content fetching

This commit is contained in:
Andrew Dolgov 2012-11-26 14:52:18 +04:00
parent 130b078109
commit 8054439f47
1 changed files with 4 additions and 1 deletions

View File

@ -807,9 +807,12 @@
if ($cache_content) { if ($cache_content) {
if ($debug_enabled) { if ($debug_enabled) {
_debug("update_rss_feed: caching content..."); _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); $entry_cached_content = cache_content($link, $entry_link, $auth_login, $auth_pass);
if ($cache_images && is_writable(CACHE_DIR . '/images')) if ($cache_images && is_writable(CACHE_DIR . '/images'))