graphic designer graphic designer andrew keir

How to delete your WordPress revisions

.

delete wordpress post revisions

If you’ve been writing a blog for a while and revisited any of your posts you might have noticed that they have many saved “revisions” accompanying them. The older the posts, they more they have, some are likely to have dozens of saves.

The reason is, WordPress continually saves post instances, even for published posts, so can you revert to them later if you so desire.

The problem is, these posts exponentially bloat your WordPress database file with otherwise useless data, which will inevitably slow the performance of your database.

When disabling this myself, I had around 130 posts and over 1400 revisions which made up around 80% of my database file. As time goes by you can imagine how much more redundant data is added.

If you wish to disable this feature for your own WordPress blog simply add the following code to your wp-config file in the root directory of your WordPress installation.

/** Stops WordPress continually saving revisions */
define('WP_POST_REVISIONS', false);

Don’t forget!

As always, back up your database before making any changes. If you’re not confident, plenty of WordPress support information is available before you get started.

Subscribe to the RSS feed or get updates via email.

What do you think?


PLEASE NOTE: To prevent spam, your first comment will be moderated so there may be a short delay before it appears. Feel free to leave your thoughts on multiple posts, and they will all appear in no time.

Welcome!

My name is Andrew Keir, I am a graphic designer and brand identity consultant working with clients around the world.

I’m currently available for hire. Feel free to contact me, review my graphic design portfolio or just browse my blog.

Start your graphic design project
Subscribe and connect
Categories
Sponsored by

Sitemap.

© 2011 Andrew Keir. Branding, identity, logo, and graphic designer. Keysborough, Melbourne, Victoria.