12.51am
Reviewers
Moderators
1 May 2011
Here’s as much as I understand:
WordPress is a database-driven content management system, using MySQL and PHP. If that means nothing to you, the rest might not either.
One of the tables in the database is called wp_options (WordPress options). It’s supposed to be quite a small table which contains various basic settings for link structures, email address and so on. In its ideal state it’s quite a small entry – just a few KB in size. However, some plugins cache information there as entries called transients. The idea is that the transient data gets overwritten and uopdated when the process is next used, which is quite an efficient way to operate.
However, one or more of my plugins is creating unique transients, which might look something like transient_timeout_dsaoklg43598ueorkgjh4309834rtf – the latter bit being a unique identifier. Crucially, because it’s unique it’ll never be overwritten, because no plugin will ever use it. So the entries pile up, to the extent that yesterday I had a 5.1 gigabyte table which should only have been 180 kilobytes.
wp_options gets referred to every time a new (non-cached) page is requested, but if it’s too big it’ll end up trying to run masses of processes and run out of memory. That’s why I used to get those Gateway Timeout errors, and why yesterday things kept slowing down or crashing. So the impetus is to keep it as lean as possible.
Now, what I need to do is work out which plugin is creating these unique entries, and ditch it. I don’t think there’s an easy way to do this beyond looking at the database size, disabling some plugins, then seeing if it creeps up again. If it doesn’t rise I’ve probably found the culprit. It’s quite a painful process but IF I’m able to finally find out where the problem lies this site should run like a dream. I’ve done enough testing and optimising elsewhere over the past weeks/months to trim all the fat. I just haven’t been able to isolate the actual problem!
In the meantime, I’ve got an automated script purging the entries, but I think it runs only once a day. Probably just about enough to keep things in check, but not a final fix.
Finally, the plugins do various things on the site, from the crumbtrail (“You are here:”) to the stats reporting, the top ten most popular pages, the maps, related links and so on. Most of them are very useful but there’s normally an alternative. I’d rather have a fully working site than one which tries to do everything but crashes all the time.
Worst-case scenario, this forum is creating the rogue database entries. At some point I’ll have to disable it to see, though I will give warning before. I don’t *think* it’s the forum though.
I hope all that made sense.
Can buy me love! Please consider supporting the Beatles Bible on Amazon
Or buy my paperback/ebook! Riding So High – The Beatles and Drugs
Don't miss The Bowie Bible – now live!
2.19pm
Reviewers
Moderators
1 May 2011
Think i get that all that. The transient data isnt getting overwritten but gets bigger and bigger due to the unique ‘file names’ (cant think of a for a better phrase) and is causing the table to basically become untenable (5.1 Gb) and cause the site to buckle under the weight (so to speak). And this is down to 1 plug-in! So is that a rogue or faulty plug-in?
Sounds very frustrating.
(If my understanding is wrong just give up trying to explain it again, it wont be worth your while.)
I suppose one of the small positives is that the site isnt your only source of income so whilst it will be a right pain and irritation and takes a load of time to fix its not losing you a pile of cash.
"I told you everything I could about me, Told you everything I could" ('Before Believing' - Emmylou Harris)
That’s exactly it, yes. I was writing early this morning and might not have been completely clear, but you’ve got it.
It’s probably a badly-coded plugin rather than a faulty one, but I suppose it’s a matter of perspective.
Actually, I noticed that quite a lot of the entries looked like this:
_transient_timeout_178.73.212.242bookmark
_transient_178.73.212.242bookmark
_transient_66.249.73.76search
Each contains a visitor’s IP address, and they all end in either search or bookmark. I’ve removed the search/subscribe bar for a while to see if that stops them building up. If they continue I’ll put it back.
You’re right, this isn’t my sole source of income, but it’s important to me to keep it online. Too much downtime and my Google rank drops, people start going elsewhere and my reputation suffers. A cranky server isn’t worth that, not after all I’ve invested in getting this to where it is.
One option is to crack on with the new theme, which is looking quite good already but is in a very prototype state. A bit of work and it might be good enough to trial. Switching themes can sometimes make a difference, if something was awry in the old one. Leave it with me.
Can buy me love! Please consider supporting the Beatles Bible on Amazon
Or buy my paperback/ebook! Riding So High – The Beatles and Drugs
Don't miss The Bowie Bible – now live!
7.56pm
20 January 2012
Sorry, I moved the site to yet another new server (hopefully for the last time – fingers crossed). I had to put the forum into read-only mode for a while, but it took longer than expected.
It *should* be working OK now, but there may be some problems here and there. Let me know if anything doesn’t work (avatars etc).
Can buy me love! Please consider supporting the Beatles Bible on Amazon
Or buy my paperback/ebook! Riding So High – The Beatles and Drugs
Don't miss The Bowie Bible – now live!
7.25pm
Reviewers
Moderators
1 May 2011
I can split/merge posts or parts of a thread into different threads now, but haven’t tested it out. The polls are coming sooner – they’re part of an add-on which is yet to be released (a plugin within a plugin, if you like). I’m looking forward to that one.
Can buy me love! Please consider supporting the Beatles Bible on Amazon
Or buy my paperback/ebook! Riding So High – The Beatles and Drugs
Don't miss The Bowie Bible – now live!
3.26am
1 May 2010
5.10pm
1 December 2009
Has the toolbar (for posting and editing posts) vanished for anybody besides me?
(This may be similar to the problem meanmistermustard reported on the “Forum changes” thread)
GEORGE: In fact, The Detroit Sound. JOHN: In fact, yes. GEORGE: In fact, yeah. Tamla-Motown artists are our favorites. The Miracles. JOHN: We like Marvin Gaye. GEORGE: The Impressions PAUL & GEORGE: Mary Wells. GEORGE: The Exciters. RINGO: Chuck Jackson. JOHN: To name but eighty.
6.07pm
Reviewers
Moderators
1 May 2011
Is it missing for both your accounts VB?
Can buy me love! Please consider supporting the Beatles Bible on Amazon
Or buy my paperback/ebook! Riding So High – The Beatles and Drugs
Don't miss The Bowie Bible – now live!
11.17pm
1 May 2010
11.33pm
Reviewers
Moderators
1 May 2011
Thanks. I wasn’t aware of that. Looks like those are the only two that won’t work. I’ll see if I can fix them.
Can buy me love! Please consider supporting the Beatles Bible on Amazon
Or buy my paperback/ebook! Riding So High – The Beatles and Drugs
Don't miss The Bowie Bible – now live!
All seem to be working now. I found out I could reorder them too, so I did. HTH.
Can buy me love! Please consider supporting the Beatles Bible on Amazon
Or buy my paperback/ebook! Riding So High – The Beatles and Drugs
Don't miss The Bowie Bible – now live!
10.27pm
1 May 2010
yaya thanks!!! And thanks for the reorder.. so let’s see we have now all John… all Paul… all George. all Ringo… former crew and ew.. Meanies… apples hearts John and Yoko in the buff and stay on toipic!!!
Thank you Joe!!
Here comes the sun….. Scoobie-doobie……
Something in the way she moves…..attracts me like a cauliflower…
Bop. Bop, cat bop. Go, Johnny, Go.
Beware of Darkness…
4.59pm
1 December 2009
Joe said
Is it missing for both your accounts VB?
…Sorry, I missed your reply and never got back to you, Joe! Yes, the toolbar is entirely missing for both of my accounts. The smileys are all visible but I can’t copy/paste or drag them. And these problems occur on three different computers so that’s likely not an issue. Weird…
GEORGE: In fact, The Detroit Sound. JOHN: In fact, yes. GEORGE: In fact, yeah. Tamla-Motown artists are our favorites. The Miracles. JOHN: We like Marvin Gaye. GEORGE: The Impressions PAUL & GEORGE: Mary Wells. GEORGE: The Exciters. RINGO: Chuck Jackson. JOHN: To name but eighty.
Oh. Sorry, I’ve no idea why that is. People occasionally report anomalies that I can’t really check – it’s often to do with their computer setup, but this doesn’t seem like that’s the case. Perhaps you should start a third account…
Can buy me love! Please consider supporting the Beatles Bible on Amazon
Or buy my paperback/ebook! Riding So High – The Beatles and Drugs
Don't miss The Bowie Bible – now live!
4.42pm
1 December 2009
Joe said
Oh. Sorry, I’ve no idea why that is. People occasionally report anomalies that I can’t really check – it’s often to do with their computer setup, but this doesn’t seem like that’s the case. Perhaps you should start a third account…
A bushelful of apples to you for that fanciful suggestion, Joe! (Only I can’t actually GIVE ’em to you, y’understand…)
GEORGE: In fact, The Detroit Sound. JOHN: In fact, yes. GEORGE: In fact, yeah. Tamla-Motown artists are our favorites. The Miracles. JOHN: We like Marvin Gaye. GEORGE: The Impressions PAUL & GEORGE: Mary Wells. GEORGE: The Exciters. RINGO: Chuck Jackson. JOHN: To name but eighty.
2 Guest(s)