Tech Note: The LGF Pages Reboot

Integrated
LGF • Views: 30,516

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
President Trump, Kris Kobach and the ACLU: The ACLU Tries to Expand Voting Rights Flush with cash and a newfound demand for activism, the American Civil Liberties Union next month will launch a new effort to expand voting rights in all 50 states that top officials hope will finally let liberals play offense ...
Thanos
9 hours, 29 minutes ago
Views: 263 • Comments: 0 • Rating: 1
Tweets: 1 • Share to Facebook
Shares: 0
Comments: 0
: 0
the Killers - Run for CoverArtists: The KillersDirected By: Tarik MikouCo-Directed By: Eric MorinWritten By: Flowers, Stoermer, Vannucci, Price, Cameron, Lee, MarleyProducers: Jacknife Lee, Daniel Jean, Olivier Picard, David Pierrat(C) 2017 Island Records, a division of UMG Recordings, Inc. vevo.ly
Thanos
1 day, 6 hours ago
Views: 262 • Comments: 0 • Rating: 0
Tweets: 0 • Share to Facebook
Shares: 0
Comments: 0
: 0
(12) LATEST: 7.1 Magnitude Quake Kills 119 as Buildings Crumble in MexicoMexico’s federal government says the death toll in a magnitude 7.1 earthquake has risen to 119.
Thanos
1 day, 6 hours ago
Views: 267 • Comments: 0 • Rating: 1
Tweets: 1 • Share to Facebook
Shares: 0
Comments: 0
: 0
Domestic Violence Homicide Rate Drops With Stricter Gun Law, Study Finds When domestic violence offenders are required to relinquish their guns, instead of simply being barred from owning firearms, the risk that those offenders may kill their partners goes down, a new study finds. The paper, described in the Annals ...
Thanos
1 day, 7 hours ago
Views: 254 • Comments: 1 • Rating: 0
Tweets: 0 • Share to Facebook
Shares: 0
Comments: 0
: 0
Exploring Child Marriage Around the World The age at which people first marry can have long-lasting implications for their physical, economic and social well-being -- particularly when marriage first happens at a young age. As part of our forthcoming global research on child marriage, we ...
Birth Control Works
1 day, 7 hours ago
Views: 246 • Comments: 0 • Rating: 0
Tweets: 0 • Share to Facebook
Shares: 0
Comments: 0
: 0
Failing Charter Schools Have a Reincarnation Plan — ProPublica This past June, Florida’s top education agency delivered a failing grade to the Orange Park Performing Arts Academy in suburban Jacksonville for the second year in a row. It designated the charter school for kindergarten through fifth grade as ...
Birth Control Works
1 day, 7 hours ago
Views: 285 • Comments: 0 • Rating: 0
Tweets: 0 • Share to Facebook
Shares: 0
Comments: 0
: 0
How Renaissance Painting Smoldered With a Little Known Hallucinogen Bosch provides the most fertile ground for art lovers wanting to believe that hallucinogenic fungi may have a significant place in art history. This is partially because the painter has a special connection to Anthony, depicting the saint over ...
Birth Control Works
2 days, 18 hours ago
Views: 384 • Comments: 1 • Rating: 2
Tweets: 0 • Share to Facebook
Shares: 0
Comments: 0
: 0
Hillary Clinton’s ‘What Happened’ Says Something Revealing About America Later, Clinton brings a similar wistfulness to her account of the second debate with Trump, at which he stalked her on stage, seeking to intimidate her. “Do you stay calm,” she asks, referring to her options, “keep smiling and ...
Birth Control Works
2 days, 19 hours ago
Views: 341 • Comments: 0 • Rating: 0
Tweets: 0 • Share to Facebook
Shares: 0
Comments: 0
: 0
Honey Glazed Apple Strudel : Recipe INGREDIENTS1 package of frozen croissant dough (hey I'm in a wheelchair!)1/2 c. breadcrumbs1/2 c. (1/2 stick) butter or margarine8 Apples (4 Granny Smith & 4 Honeycrisp)1/2 c. dried Montmorency cherries (optional)2 Tbsp rum or kirschwasser (optional)1/2 c. sugar1/4 c. ...
The Vicious Babushka
2 days, 21 hours ago
Views: 452 • Comments: 1 • Rating: 2
Tweets: 4 • Share to Facebook
Shares: 0
Comments: 0
: 0
Study: 4,500 Deaths a Year From High Europe Diesel Emissions Remember that time Europe encouraged diesel vehicles because they were thought to be more environmentally friendly? Between black carbon climate effects and cancer deaths that claim turns out to be specious. BERLIN (AP) — Researchers say there have been ...
Thanos
2 days, 21 hours ago
Views: 286 • Comments: 0 • Rating: 0
Tweets: 1 • Share to Facebook
Shares: 0
Comments: 0
: 0