Using Google Cache to Recover Blog Pages
2,529 views -Posted in:
2,529 views
Ever wished you could get back a previous version of a web page? You can - quickly using google cache!
I was hacking my Wordpress comments.php file the other day and changes that I made didn’t work. When I decided to back them out I realized I made too many to remove by hand - so I used a version I had on my local PC. I thought it was the latest version. It turns out that the last time that I made changes I did it in through the theme editor in Wordpress, so my local version was really old.
Last Month I wrote about creating Rockstar Comments in Wordpress in 12 Steps. When I wrote that article I modified my comments.php file and placed a new block at the top of the Comment form showing readers that we reward comments. Now those changes are gone!
I backup my site and I could dig up my previous version from a backup - but there’s an easier (and quicker) way. This has worked for me before when I made a change and needed to get back the previous version within a week. With this method you can “restore a blog page” yourself!
First you need the full URL of your page. Then paste it in google. When the search result comes up just click on “cached” (which I have highlighted in red below):

When I clicked on it the google cache says that the page it’s showing me is from February 4th (and today is the 9th). Perfect!

When I scoll down the page I find the block of text that I need to recover. I take my mouse and highlight it, and then right-click the mouse and choose “view selection source” (you can only do this in Firefox).

Once you do that just what you highlighted will he highlighted in the html code for you like this:

I copied the div I had lost and pasted it back into my comments.php (on my local PC of course) and then made the changes in Wordpress. I have successfully recovered my page using google cache! This method also works if you somehow delete a page and don’t have it at all - google cache to the rescue! It’s not nearly as specific, but if you want to go back in time months or years You can always check out the Wayback machine at the Internet Archive! My blogging mistake this time was not keeping a local backup copy of all my Wordpress theme files! Editing them in Wordpress using the theme editor is handy, but overwrites the previous copy every time.
Have a story about losing a page, post or content? Have a question? Please, comment now!
























February 10th, 2008 at 10:42 am
Thanks for the tip! Glad I stopped by to drop kick your EC
spostareduro’s last blog post..Shari Voigt’s ?Strange but True?
February 12th, 2008 at 1:56 pm
I’ve had to use that trick more than once. Once I used it to find out how to unlock a GM car stereo. There is a phone call you have to make to do it. Then all you do is type in some numbers and it gives you a code. The dealership charges for this. I found a forum post through Google, but GM got to the site first and took the post down. Using ye olde Google cache, I saved myself what was $30 at the time. I don’t mind spending money, but paying someone to make a five minute phone call, too much.
Stephan Miller’s last blog post..Blog Monetization Strategies
March 12th, 2008 at 12:41 pm
I find the Wayback Machine bookmarklet very useful (link below, scroll down a bit). You could also create a similar bookmarklet for a suitable Google search.
http://www.archive.org/web/web.php
kometbomb’s last blog post..Software Improvements That Made Hardware Better