Tech Note: The LGF Pages Reboot

Integrated
LGF • Views: 30,649

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):

littlegreenfootballs.com

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 PageThis 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: 2016-01-01 10:29 am PST
LGF User's Guide RSS Feeds Tweet

Help support Little Green Footballs!

Subscribe now for ad-free access!Register and sign in to a free LGF account before subscribing, and your ad-free access will be automatically enabled.

Donate with
PayPal
Square Cash Shop at amazon
as an LGF Associate!
Recent PagesClick to refresh
Brandi Carlile - the Joke (Official Video) From the album "By The Way, I Forgive You" available now. elektrar.ec Directed by Danny Clinch Produced by Lindha Narvaez for MILKT Choreography by Peter Leung Ballet sequence filmed by Middle Table Productions Connect with Brandi: brandicarlile.com facebook.com @brandicarlile ...
Thanos
6 hours, 20 minutes ago
Views: 71 • Comments: 0 • Rating: 0
Tweets: 0 • Share to Facebook
Shares: 0
Comments: 0
: 0
School Shooter Nikolas Cruz Belonged to White Supremacist GroupThis my surprised face.... BREAKING: Nikolas Cruz, alleged perpetrator in the deadly school shooting in Parkland, Florida, was associated with white supremacist group Republic of Florida & participated in the group’s training exercises, according to the group’s leader. More info: ...
Scottish Dragon
2 days, 14 hours ago
Views: 289 • Comments: 2 • Rating: 1
Tweets: 0 • Share to Facebook
Shares: 0
Comments: 0
: 0
Your Medicine Cabinet Knows What AIls Youblog.timesunion.com HOFFMAN FILESYour medicine cabinet knows what ails you.By Rob Hoffman on February 15, 2018 at 5:27 AM1We all fancy ourselves experts when it comes to the human condition. We see our fellow human beings as open books, and we ...
rhoffman
2 days, 16 hours ago
Views: 309 • Comments: 0 • Rating: 0
Tweets: 0 • Share to Facebook
Shares: 1
Comments: 0
: 1
A.G. Schneiderman Files Civil Rights Lawsuit Against the Weinstein Companies, Harvey Weinstein, and Robert Weinstein NEW YORK – New York Attorney General Eric T. Schneiderman today filed suit against The Weinstein Company (“TWC”), Harvey Weinstein, and Robert Weinstein for egregious violations of New York’s civil rights, human rights, and business laws. The suit, filed ...
Thanos
6 days, 9 hours ago
Views: 807 • Comments: 0 • Rating: 0
Tweets: 5 • Share to Facebook
Shares: 2
Comments: 0
: 2
Portugal. The Man - Keep on (Official Video) Portugal. The Man - Keep On Video conceptualized, created and directed by Paulin RoguesFollow Paulin at instagram.com Catch Portugal. The Man on tour:portugaltheman.com WOODSTOCK available now!atlantic.lnk.to Follow Portugal. The ManWebsite: portugaltheman.comFB: facebook.com IG: instagram.comTW: @portugalthemanSC: SoundCloudYT: youtube.comTumblr: portugaltheman.tumblr.com ...
Thanos
1 week ago
Views: 951 • Comments: 0 • Rating: 0
Tweets: 1 • Share to Facebook
Shares: 0
Comments: 0
: 0
Marvel’s Jessica Jones - Season 2 Jessica Jones is back as New York City’s tough-as-nails private investigator. Although this time, the case is even more personal than ever before. Fueled by a myriad of questions and lies, she will do whatever it takes to uncover ...
Thanos
1 week ago
Views: 845 • Comments: 1 • Rating: 2
Tweets: 0 • Share to Facebook
Shares: 0
Comments: 0
: 0
Deadpool 2 Teaser Trailer - Red Band (2018) Ryan Reynolds, Josh Brolin The Merc with a Mouth takes a pop at Cable, Toy Story and Justice League in this teaser for the upcoming Deadpool sequel. Watch more entertainment and game trailers here!YouTube Watch the latest from IGN here!YouTube ------------------------------­----Follow IGN for ...
Thanos
1 week ago
Views: 841 • Comments: 1 • Rating: 1
Tweets: 0 • Share to Facebook
Shares: 0
Comments: 0
: 0
Poll: Number of Conservative-Leaning States Drops to 39 (CN) – The number of conservative-leaning states has dropped from 44 to 39, according to a new Gallup poll released Wednesday. The survey, conducted over a number of polls taken throughout the year, found that 35 percent of Americans ...
Thanos
1 week, 2 days ago
Views: 964 • Comments: 0 • Rating: 3
Tweets: 0 • Share to Facebook
Shares: 0
Comments: 0
: 0
Shock Tactics: Why ‘Higher Risk’ Human Targets Get Stunned With Tasers NEW YORK – The maker of the Taser says the electroshock weapon is the safest tool on a police officer’s belt – with a few caveats. In pages of warnings, Axon Enterprise Inc advises police to beware that some ...
Thanos
1 week, 3 days ago
Views: 970 • Comments: 0 • Rating: 0
Tweets: 1 • Share to Facebook
Shares: 0
Comments: 0
: 0