diff options
| author | Tomasz Kalkosinski <pppspoonman@users.sourceforge.net> | 2008-12-12 23:12:38 +0000 |
|---|---|---|
| committer | Tomasz Kalkosinski <pppspoonman@users.sourceforge.net> | 2008-12-12 23:12:38 +0000 |
| commit | 24ff0fdea3648119bfb7c337f70755b62127638f (patch) | |
| tree | d7057731acf328ba96bd9053b3e2c8ad4081197d /boards_rss.php | |
| parent | 7bd24c158ef621e434bd252dcb2c17f712990ec5 (diff) | |
| download | boards-24ff0fdea3648119bfb7c337f70755b62127638f.tar.gz boards-24ff0fdea3648119bfb7c337f70755b62127638f.tar.bz2 boards-24ff0fdea3648119bfb7c337f70755b62127638f.zip | |
Fix 2391773 - no double posts for people who subscribed via different URLs.
Diffstat (limited to 'boards_rss.php')
| -rw-r--r-- | boards_rss.php | 6 |
1 files changed, 4 insertions, 2 deletions
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 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_boards/boards_rss.php,v 1.3 2007/07/26 21:05:48 spiderr Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_boards/boards_rss.php,v 1.4 2008/12/12 23:12:38 pppspoonman Exp $ * @package boards * @subpackage functions */ @@ -34,7 +34,9 @@ $rss->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(); |
