shannon_a: (marrach skotos)
[personal profile] shannon_a
So, the new news system at RPGnet is definitely going. As I mentioned you can access it at [livejournal.com profile] rpgnet_news.

But there was a bit of a trade-off in my design that I still haven't decided on.

The news system is now database driven, but one of my rules for the RPGnet homepage remains, "No database access", so that even if MySQL locks up (and it does) the front page is always visible. Thus whenever I put new info on the front page I have to do it via an intermediary flat file.

For the reviews I constructed my own flatfile format and it sometimes breaks with unexpected user input.

For the news I instead had a great idea. I knew I was going to make it available via RSS, so why not just read the front page news straight off the RSS feed, which is a flat file stored on the server?

So, the RPGnet home page now reports its news via its own RSS feed (in fact, using the same functions that I use to read other sites' RSS feeds in the updated Press & News section).

This is very elegant and very easy to update.

There's a downside though: caching. RSS feeds always get cached by the functions I use, so that you only hit a remote site once an hour rather than every time someone reads the RSS. This now means that the update of the RPGnet home page lags an average of 30 minutes past the update of the news.

Hmmm.

I haven't decided if this is a real enough problem to change things or not.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

July 2025

S M T W T F S
  12345
6 789101112
13141516171819
20212223242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 8th, 2025 09:30 pm
Powered by Dreamwidth Studios