Jun 05 2009
Posted by Webmasters-central.com as Blogging and Autoblogging
Wordpress has annoying feature of saving the posts and revisions every ‘n’ seconds. Fact is I never type the content directly into TinyMCE while posting a post. I just type it in notepad on my computer and copy and paste it into the editor. Still I had to do some previewing and correctons like font changing, highlighting etc. Meantime Wordpress saves this post with seperate ids in the database.
After some time the dabase will bloat up with many unnecessary data rows. This slows down the database performance.
So I have decided to disable these two ‘Autosave’ and ‘Post revision’ features.
To DISABLE ‘Post revisions’:
1. Login into your web panel.
2. Go to your wordpress blog directory.
3. You will find a file ‘wp-config.php’.
4. Open it and scroll down completely. You will see ‘?>’ as last line.
5. Before that last line copy this line of code and paste it there.
define(’WP_POST_REVISIONS’, false);
6. Save the file.
To DISABLE ‘Autosave’:
1. Login into your web panel.
2. Go to your wordpress blog directory.
3. You will find a file ‘wp-settings.php’.
4. Find these two lines:
if ( !defined( ‘AUTOSAVE_INTERVAL’ ) )
define( ‘AUTOSAVE_INTERVAL’, 60 );
5. Change the time in there. 60 is in seconds. Change it to: (I selected 1800 seconds because I don’t want Wordpress to autosave anywhere with in 30 minutes.
if ( !defined( ‘AUTOSAVE_INTERVAL’ ) )
define( ‘AUTOSAVE_INTERVAL’, 1800 );
6. Save the file.
That’s it!
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Aug | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||
3 Responses
Hari
October 6th, 2009 at 12:43 am
1Is there any ways to update a wordpress blog automatically by giving a feed of another wordpress blog?
I mean i am having the xml feed link of another blog and i want it to upload in my blog so that my blog gets automatically updated whenever the feed gets updated.
Pls mail me your reply as i may forget that i was here. Thanks.
Webmasters-central.com
October 7th, 2009 at 11:27 pm
2See this script will be useful to you. Though it is not automatic, you can update content with single click.
Delete-Revision和Disable autosave插件禁用wordpress的自动保存 | 番茄芝
February 22nd, 2010 at 10:27 am
3[...] 和 Disable-autosave 原创文章如转载,请注明出处:转载自:番茄芝 [...]
RSS feed for comments on this post · TrackBack URI
Leave a reply