Website Down

So you may have noticed that for a while on Sunday, the websites were down.

My account was suspended because I had been tying up the mysql server from one site. My guess is that because all the traffic from bikemart.thesaweb.co.za and automart.thesaweb.co.za was going into one url www.sellstuff.co.za that the code that was working fine on 3 seperate sites now looked to be way too resource intensive.

So I spent a good part of Sunday optimising my code to minimise the calls to the database, which is a good thing because now all the pages on the site load much quicker. I am going to go one better than that by actually caching the ads title and so on.

Currently for each page I get a list of which ads should display then loop through each of those ads, each time selecting that ad from the database to build the title, then one by one I build the lines on the page.

What I am going to try and do now is to generate a small text file the first time that the ad is needed in a list, then every time the ad comes up to be displayed on the page I will simply open that file which contains the url string, ad title and the path to the ads thumbnail (if it has an image).

This will lessen the load on the database as well as speeding up the page (because opening a file is quicker than making a call to a database).

If the user edits thier ad then I will simply delete that cache file and it will be re-generated again when the ad is displayed.

Hope this helps to improve your experience when visiting www.sellstuff.co.za

Posted under Classifeds Sites Updates

This post was written by Shaun on January 26, 2009

Tags: , , , , , ,

Bike/Automart merged into sellstuff.co.za

bikemart.thesaweb.co.za and automart.thesaweb.co.za have been merged into www.sellstuff.co.za

Reason for this is that www.sellstuff.co.za displays all the ads that bikemart and automart used to so it seemed a bit of a waste of resources to have all three running at the same time.

On a different note I have added a number of categories to www.sellstuff.co.za between December and now, but have never actually let anyone know. So if you did send in a category suggestion, check the site it should be there!

Posted under Classifeds Sites Updates

This post was written by Shaun on January 23, 2009

Tags: , , ,

Classifieds Update

You may or may not know this but, I also have a classifieds website, www.sellstuff.co.za.

Well anyway, I have noticed that some fool has started spamming the advertisers on the site, so I added some CAPTCHA text to thwart them. MAN I hate spammers!!

I mean seriously, what kind of idiot actually believes people will buy the sh!t they get through an email with terrible english?

Reminds me of way back before I wrote the new classifieds when a guy (from somewhere in asia) would create ads, saying “wow! nice site! buy viagra” with a link. WTF!?!? F@#k off and die d!ckhead, try do some seo then you want need to do cr@p like that!!

So my point is if you have ads on www.sellstuff.co.za, or automart.thesaweb.co.za or bikemart.thesaweb.co.za I apologise for any inconvenience caused but want you to know that it is sorted now.

Posted under Classifeds Sites Updates

This post was written by Shaun on November 21, 2008

Tags: , , , , , , ,