Skip to content
UFO Performance Marketing

Where intelligence is put to the test.

HomeServicesCase StudiesBlogAboutContact Us
Menu
HomeServicesCase StudiesBlogAboutContact Us
WordPress · Oct 16, 2014

How to Recover Deleted Posts Using Firefox Cache

How to Recover Deleted Posts Using Firefox Cache
JC
John Crenshaw
Oct 16, 2014

wo post recovery methods

So, the other day I deleted a post almost immediately after publishing it (although I'm convinced it was WordPress' fault and not mine ;-) ). In the past I've been able to recover deleted posts using Archive.org, but that only works if the post has been published for long enough to be archived by Archive.org. If Google's had time to index the post, I can search for it by title and site using the "site:sitename.com: post title" syntax, and clicking on the "Cached" link to pull up the copy of the page Google has cached on it's servers as you can see below.

Google Title Search to Recover Deleted WordPress Posts
Checking Google's cache for a copy of the deleted post

Then I can just copy the text and republish the post. But again, this post was deleted almost immediately after publishing, so I had to find a different way.

Using the Firefox Cache to Recover a Post

Then it dawned on me that I had visited the post a few times while writing it and then once again after publishing, but before it got deleted, so Firefox would certainly have it cached...but how do I recover the post from the cache? Here's how I did it.

  1. I did a little searching and discovered you can access the Firefox cache by going to the address bar and typing "about:cache" without the quotes.
  2. You should see three sections as shown here:
Firefox cache to recover deleted WordPress post
Viewing the Firefox Cache (about:cache)
  1. You may need to search all three sections, but lets start with "Memory cache device" - click on the "List Cache Entries" link in that section
  2. After that you'll be faced with a [probably] huge list of all the URLs saved in the Firefox memory cache. Hit Ctrl + F and type the post slug you gave your original post. Here's mine after searching for "top-wordpress-plugins":
Firefox cache search to recover deleted posts
Searching the cache for "top-wordpress-plugins"
  1. Once you've found the post, click on the URL and you'll see another page full of what appears to be quite a bit of gibberish. Copy and paste the entire section, starting with what you see outlined in red below, into your text editor of choice, preferably one with Regular Expression search and replace functionality (take note of the right side of the image - it's the HTML code for the page we're looking to recover):
Firefox disk cache
Firefox cache gives us HTML code + a bunch of stuff we don't need
  1. Once you've got all that into your favorite text editor, you just need to get rid of all the extra stuff aside from your post content. I found it easiest to do this using Dreamweaver's regular expression search and replace. I'm using Dreamweaver's tool because other REGEX search and replace tools I've used just don't seem to work right for me. Here's the expression I used, which you can also see in the photo below: [0-9a-z]{8}:s*?([0-9a-z]{2}s*?){16}s
Dreamweaver regular expressions to clean up recovered post
Using Dreamweaver's regular expression search and replace to clean up the recovered post
  1. That allowed me to get rid of all the extraneous characters, but I was still left with my post HTML in a narrow column down the page, so I needed to fix that...I used another regular expression to get rid of all the extra line breaks, but I had to go into the code view to get this done (did I mention the last REGEX was run in Design view?). This time it looked like this: <br />
Dreamweaver search and replace to clean up line breaks
Removing the <br /> tags
  1. Once that was done I ended up with the HTML code for my post nice and clean - albeit on one long wrapped line. From there I just found the post content, copied it, and then pasted it into the HTML editor for a new WordPress post.
  2. And that's it. It wasn't easy, but at least I didn't have to rewrite the entire post.

Conclusion

Is this the easiest method of recovering a post? Absolutely not! In fact, its a major hassle, and it's certainly a last resort, but it's better than rewriting that entire post you just spent a few hours on.

WordPress

Get the latest from UFO

Keep reading

More from the blog

All Posts →
ExpressionEngine vs. WordPress - Final Thoughts
WordPress

ExpressionEngine vs. WordPress - Final Thoughts

What I like about ExpressionEngine when compared to WordPress and my final thoughts on the commercial CMS from EllisLab.

John Crenshaw · Oct 13, 2018
Wordpress $post Object Quick Reference
WordPress

Wordpress $post Object Quick Reference

This quick reference / cheatsheet is for the WordPress $post object. This object contains a bunch of info specific to each WordPress post. Scroll down for the complete table of object properties.

John Crenshaw · May 15, 2015
Remove "Briefly Unavailable for Scheduled Maintenance" Message
WordPress

Remove "Briefly Unavailable for Scheduled Maintenance" Message

If you've been keeping on top of your WordPress updates using the automatic upgrade feature, you may have run into a problem immediately after upgrading.

John Crenshaw · Dec 10, 2014

Want results like these?

Let's talk about where you are, where you want to go, and the smartest way to get there.

Contact Us
UFO

Where intelligence is put to the test.

  • Home
  • Services
  • Case Studies
  • About
  • Partners
  • Testimonials
  • Projects
  • Blog
  • Careers
  • Contact Us

Offices

  • Cincinnati, OH
  • Columbus, OH
  • Portland, OR
  • (513) 549-7355
Contact Us
Google 5.0 five star rating Google Ads Premier Partner 2026
© Copyright 2026 UFO Marketing. All rights reserved. Privacy Policy | Terms of Use