Tech Note: The LGF Pages Reboot

LGF • Views: 29,768

The new LGF Pages re-design is now in launch mode, and the first thing you’ll notice is that it looks a lot like the rest of the site. And that’s a good thing.

The old LGF Pages index had its own design, which actually started as a coding experiment way back in the day. Now it’s completely integrated into the design of the rest of LGF.

It’s more than a design integration, though; I also lavished a lot of attention on the plumbing, the MySQL queries that manipulate the LGF Pages database tables. Many of these queries worked very well as long as the whole list of Pages wasn’t too large — but with the number of Pages approaching 300,000, those queries were becoming unacceptably slow. In the lingo, they weren’t scaleable. That’s why I had to take the LGF Pages index offline when we installed our new servers.

Now these queries are very scaleable; I’ve optimized and refactored the queries and the PHP code behind them to make this new version respond much more quickly — again, like the rest of LGF.

If you’re signed in to an LGF account, some of the stats displayed on LGF Pages indexes are now “live,” updated at 5-second intervals, including the last comment and the page views. The Twitter counter is updated too, but at 90-second intervals.

When you scroll all the way to the bottom of the list of Pages, there’s a big button labeled “Show More Pages.” If you’re so inclined you can just keep clicking this button and showing more Pages until you reach the end, or your browser explodes, whichever comes first.

(Disclaimer: LGF not responsible for exploding browsers.)

Individual authors of Pages have their own indexes, just as in the old version, but again they now appear in a style consistent with the rest of LGF. You can get to any author’s LGF Pages by clicking their username in one of their Pages. The URL for your Pages looks like this (giving you a personal LGF web address):

And… one of the main problems with the old LGF Pages index was the search function. Basically, it sucked, and I say that as the author. Mea culpa. The biggest reason it sucked was because MySQL doesn’t have FULLTEXT indexing for tables of the InnoDB type, but you don’t really care about that. All you care about, and I don’t blame you, is that it’s fast. And the old LGF Pages search feature was the opposite of fast.

The solution: I’ve been noticing for a while that Google is crawling the heck out of LGF, and LGF Pages often show up in Google search results almost immediately after being posted, so I used Google’s “Custom Search Engine” feature to set up a special tool that searches LGF Pages. To use the custom Google search, type your search terms into the field in the left sidebar labeled “Google LGF Pages…”

Google’s search is ridiculously fast. Damned near instantaneous, in fact. Check it out and see how it compares to the old LGF Pages search feature.

Jump to top

Create a Page

This is the LGF Pages posting bookmarklet. To use it, drag this button to your browser's bookmark bar, and title it 'LGF Pages' (or whatever you like). Then browse to a site you want to post, select some text on the page to use for a quote, click the bookmarklet, and the Pages posting window will appear with the title, text, and any embedded video or audio files already filled in, ready to go.

Or... you can just click this button to open the Pages posting window right away.

Last updated: 2015-09-11 10:11 am PDT

LGF User's Guide RSS Feeds

Help support Little Green Footballs!

Subscribe now for ad-free access!

Recent Pages
Whales Play Under the Northern Lights in Norway
A group of humpback whales basking under the Northern Lights has been captured on camera by Norwegian TV. The video was filmed off the coast of Kvaløya (Whale Island) near the city of Tromsø. There is no commentary on ...

14 minutes ago
Views: 42 • Comments: 0
Tweets: 0 • Rating: 0
Great White Snark
How Iranian General Plotted Out Syrian Assault in Moscow
At a meeting in Moscow in July, a top Iranian general unfurled a map of Syria to explain to his Russian hosts how a series of defeats for President Bashar al-Assad could be turned into victory - with Russia's ...

2 days, 4 hours ago
Views: 309 • Comments: 0
Tweets: 2 • Rating: 1
I Stand With Planned Parenthood
Gates Foundation Gives New Parents a Year of Paid Leave
The Bill & Melinda Gates Foundation is giving new parents up to a year of paid parental leave. The foundation's new policy, offering both mothers and fathers up to 52 weeks of paid time off during the first year ...

2 days, 11 hours ago
Views: 366 • Comments: 1
Tweets: 0 • Rating: 1
Under the Lake Live Thread
Another Two-Parter this time, it promises to be awesome join me here!

6 days ago
Views: 499 • Comments: 25
Tweets: 2 • Rating: 1
Imagine Donald Trump as a Dystopian Sci-Fi Movie Tyrant ( Video )
Here's a video created by folks at the science and sci fi website io9. Its disturbing because Donald Trump really does sound like he could be Dystopian despot! Watch the video and you'll see what I mean. If you're a ...

1 week ago
Views: 590 • Comments: 3
Tweets: 0 • Rating: 2
Paul Canning
World’s Main Security Issue Today Is Russian Poisoned Public Opinion
I have posted before about how Americans seem to be unaware just how much Russians are being told to hate them. In this article Andreas Umland, a Kyiv based analyst and Senior Research Fellow at the Institute for Euro-Atlantic ...

1 week, 1 day ago
Views: 726 • Comments: 0
Tweets: 6 • Rating: 1
The Autumn DIY Project
Ok, so September is not exactly New Year, but as the academic term begins and schools go back following the holidays, it does feel like a fresh start. It can be a good time to tackle new projects, so why ...

2 weeks, 1 day ago
Views: 751 • Comments: 0
Tweets: 2 • Rating: 0