Legitament Work At Home


Disable WordPress Post Autosave in 3 Easy Steps

Well, I finally got sick and tired of WordPress saving my post drafts every two seconds (ok, it probably only seems like every two seconds) but I finally decided to do something about it and disable the post autosaves. Today I am actually enjoying making new posts without my computer coming to a halting stop while wordpress saves my post. Here’s how to disable wordpress post autosaves.

Step 1. Open wp-config.php in notepad

Step 2. Copy and paste the following 4 lines into wp-config.php (example image below)

/* Post Revisions Off */
define(’WP_POST_REVISIONS’, false);

/* Post Autosave Off */
define( 'AUTOSAVE_INTERVAL', 3600 );

Code added to wp-config

That’s it. Pretty simple!

I’m using 3600 which is 1 hour. You can set for how ever many seconds you want to delay autosave. Just multiply the number of minutes you want to delay by 60 (seconds) and use that number instead. If you wanted to autosave every 30 minutes, it would be (30*60=1800) so you would set the interval at 1800.

When researching this, I notice a lot of examples to edit this delay in the wp-settings.php file but that would require you to edit again after every WordPress version upgrade and as long as you are using 2.5 or higher then you can just edit the wp-config.php file once and be done with it.

Note: It’s still going to save once when you first start to write your post but then the delay will kick in and it won’t keep interrupting your work after that.

Hope that works for you as well as it did for me!

Share

Additional Articles From "Technical"

12 Responses to “How To Cloak Affiliate Links Using Htaccess”

  1. AffiliateMusketeer on November 20th, 2008 at 4:37 am

    Thanks, Gail, great post! I got a little confused around the ‘how to count the cloaked links’ section but I think that was more due to the time (3am) than anything else. I have tried your methods again this morning though and they work perfectly.

    I’m using it on an unindexed landing page, driving traffic via PPC, and promoting a clickbank product. So far so good…

  2. Glad you were able to get it going! Your problem with understanding probably had less to do with it being 3am when you were reading and more to do with it being 3am when I wrote it. ;)

  3. Hi Gail,

    I tried your cloak link for clickbank, and it worked perfectly on the first time. the same cloak link can be used for commission junction as well?. I looked at your cloak link generator, not sure I understood it well, to give it a try.
    thanks for your help Gail.

    Warm regrds
    Charles.

  4. Hi Charles,

    Glad you were able to use the clickbank code easily. I don’t use CJ much and haven’t tried to see if I could cloak the links. For the misc items I do promote, I use my own url shrinker. You can see it at https://wahguide.com/url , you are free to use that one if you like or you can install the script and use on your own site. You can download it at https://wahguide.com/freebies/url-shortner.zip , I also put a link to it in the freebies section. It’s easy to install and the readme file is included. If you have any problems with it, just let me know. On a side note, I think it would not be difficult to do Ebay links and I’ll look at that sometime soon.

    Take care,
    Gail

  5. Hi Gail,

    Thank you so much for the reply. the url shrinker seems attractive. No Gail I did not use it yet, though just tested it. Just saw your reply, thought I will say thanks. will catch up with you once I try it out. Thanks again Gail.

    Warm Regards
    Charles.

  6. hi nice post pretty useful I got this to work, although it would be nice to know how to also include .html extension on the end instead of just http://yoursite.com/amz/B0011ZCDKS. I’m sure this can be all done in .htaccess file just not sure I’m a little bit of a green horn lol!

  7. Hi Sheldon,

    It’s no problem to add the .html to the end.

    Replace
    RewriteRule ^(.*)

    with
    RewriteRule ^(.*)\.html

    Then your link would look like
    http://yoursite.com/amz/B0011ZCDKS.html

    This works with clickbank as well. And you can change the html to any file extension you want. It is basically just ignored anyway.

  8. hi,dear

    thanks for useful tips you let me to know more about .htaccess.
    how i can indexing my newly created sites using .htaccess in search engines like google?

    thanks alot for article.

  9. Whoa… this site is pretty awesome :) your layout is really well designed, and your blogs are (judging from what i’ve read) very interesting. heehee… consider yourself favorited. :-P

  10. Hello, I enjoy reading through your blog, I wanted to leave a little comment to support you and wish you a good continuation. Wishing you the better of luck for all your blogging efforts.

  11. Flippa Chick on May 10th, 2010 at 5:36 pm

    Excellent post! I’ve switched over one of my dynamic websites to a static .html website and was looking for a more efficient way to cloak my Amazon links since I couldn’t use the features of plugins.

    Thanks for sharing! :)

  12. Amazon Links idea great. I’m going to try it with my Amazon affiliate sites. thank you.

Leave a Reply


free forex forecasts