From 24ff0fdea3648119bfb7c337f70755b62127638f Mon Sep 17 00:00:00 2001 From: Tomasz Kalkosinski Date: Fri, 12 Dec 2008 23:12:38 +0000 Subject: Fix 2391773 - no double posts for people who subscribed via different URLs. --- boards_rss.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'boards_rss.php') diff --git a/boards_rss.php b/boards_rss.php index c452749..372dbf9 100644 --- a/boards_rss.php +++ b/boards_rss.php @@ -1,6 +1,6 @@ description = $board->getField( 'parsed_data' ); $rss->link = 'http://'.$_SERVER['HTTP_HOST'].$board->getDisplayUrl(); // check if we want to use the cache file -$cacheFile = TEMP_PKG_PATH.RSS_PKG_NAME.'/'.BOARDS_PKG_NAME.'/'.$cacheFileTail; +// HTTP_HOST is needed beacuse people subscribe to RSS via different URLs (docs.bw.o and www.bw.o for example) +// cached versions of other URLs will double posts +$cacheFile = TEMP_PKG_PATH.RSS_PKG_NAME.'/'.BOARDS_PKG_NAME.'/'.$_SERVER['HTTP_HOST']."_".$cacheFileTail; $rss->useCached( $rss_version_name, $cacheFile, $gBitSystem->getConfig( 'rssfeed_cache_time' )); $topic = new BitBoardTopic(); -- cgit v1.3