RSS Feed - Display In Random Order?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
itsinmyhead
Forum Commoner
Posts: 25
Joined: Wed Aug 13, 2008 11:33 am

RSS Feed - Display In Random Order?

Post by itsinmyhead »

So, I've got some RSS feeds setup. An example: http://www.adkpennysaver.com/rss/rssfeed.php

If you go to that page and refresh, you'll see that the listings are displayed in a random order. However, if you add them to your iGoogle/whatever page, they aren't displayed in a random order - they're displayed in whatever order they were shown on the above page. Even with refreshing your homepage/whatever page the feed is displayed on, the results do not change order.

Is there a way to get these to resort randomly each time someone accesses it on their homepage? It's pretty beneficial that the results are displayed in a random order so that all of the ads have a chance to be seen rather than just a few static ones.

Thanks!
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

Re: RSS Feed - Display In Random Order?

Post by php_east »

usually people cache RSS feeds, for good reasons of course. and we cannot do anything about that other than to get them to use special non cached RSS readers, which they might not just for the sake of adverts.

the other factor is performance, if a page accesses 10 RSS feeds, and all are not cached, the page load will inevitably be slow. just my 2 cents.
Post Reply