27
Apr
2009

How to tweak the Auto Save feature in WordPress

WebmasterComments Off on How to tweak the Auto Save feature in WordPress





Bookmark and Share

wordpressThe Auto Save feature in WordPress is a nice, helpful function which automatically and periodically saves your posts  (while you write them)  after x seconds (default is 60 seconds). You may wonder what it is for. Just image this scenario. You have been working for half an hour on a certain post. Abruptly, a power outage comes turning your PC off without warning. Guess what happen?  Your post, unless you saved it previously, has gone. Irremediably lost beyond recovery! Under this point of view the Auto Save feature is very, very necessary, isn’t it? However the down-side is that, by automatically saving your posts every 60 seconds, it consumes a lot of your server resources, also causing slow queries, above all if you are on a shared server.  Here is a little hack to…optimize it. 

Go to your FTP server, open the public_html folder, locate wp-config.php and add  the following piece of code between the opening <?php and closing ?>:

define(‘AUTOSAVE_INTERVAL’,600);

600 in the example, represents the number of seconds (10 minutes) WordPress should wait between auto-saving your post.




Related Articles Latest Articles
.

Comments are closed.


Copyright © 2007-2017 | Sitemap | Privacy | Back To Top
Best screen resolution 1280x800 or higher.
Web Talk is best viewed in Firefox.

Stat