-
Pages
Twitter
- The decision to have Weinerschnitzel for dinner is one that I now der-gret. 2010/09/02
- Thanks to some poor behavior (see: complaining on the internet) my blog is now effortlessly backing up on @VaultPress. Glad I threw a fit! 2010/09/02
- @VaultPress: Thanks! If I knew that being snarky on the internet would get me things, I would have started doing it a long time ago. ;) 2010/09/02
- <grumpy>I wish @VaultPress would quit retweeting testimonials and get around to sending me a damn invite.</grumpy> 2010/09/02
-
Foursquare
Archives
- August 2010
- March 2010
- February 2010
- January 2010
- November 2009
- August 2009
- June 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
Rekismet
After examining a customer’s 150,000+ row wp_comments table at work yesterday, I realized that they’d managed to let WordPress approve a massive amount of spam. Since there was no way I was going back thru all of that by hand, I knew that I had to come up with something clever.
Fortunately, running your already approved comments thru Akismet is pretty easy. Well, that might be a bit disingenuous. It’s easy for the geeky types that are comfortable with the MySQL command line and raw queries. So if you manage to fall into that category, feel free to give this a go…
update wp_comments set comment_approved=’0′ where comment_approved=’1′;
This tells WordPress to take any comment already flagged as “approved” and set it to “pending”.
update wp_comments set comment_approved=’1′ where comment_approved=’0′;
This takes the “pending” comments and sets them back to “approved”.
If I can hack together a way to work around the PHP execution timeout issue, I’ll do my best to make this into a simple to use plugin. Since I’ve got a lot on my plate right now, I’d prefer it if the lazyweb could beat me to getting that done. Any takers?