Ping WordPress - reduce the load on the server

(No ratings yet)
Загрузка ... Loading ...

I like to speed up the work of WordPress, reduce the load on the server and all that is connected with it.

Today I will tell you how you can reduce the load on the server when writing new posts or edit old ones.

Once you've written a new article and clicked "Publish», WordPress «throws» Home page, updates the database, creates a site map (if you have the plugin) and pings update services from your list. Moreover, it does these operations simultaneously. With a small number of processes is not a big load, respectively. But if your blog has grown out of the 'new', the load can be very large.

I propose a simple solution. In the functions.php file, add the line:

Now WordPress postpone pinging. Ping will only take place after the completion of all previous operations on the publication (edited) post, update a database, etc.

In the latest WP 2.8. * This feature is enabled by default.

Last modified: 10/08/2013 at 08:02
Published: Saturday, September 26, 2009 at 13:29
Choose the language:

Comments: 5

Average bar: 4.96 out of 5
  1. Ahmed
    September 30th, 2009 at 22:21

    And what is your version of wordpress?

    Reply

  2. Ai Pi Mani
    October 1, 2009 at 20:05

    Sorry Ahmed, but his version of WP in the network, it does not "shine", so as not to give clues to various "craftsmen".

    Reply

  3. Paul
    October 11, 2009 at 07:29

    Thanks for the article. Do I understand that with 2.8 this feature is already built?

    Tried to find out the version with the wp-admin - locked.
    Tried other place successfully. :)
    Send an email if interested. Also prompt a couple of sites with bugtrack wordpress.

    Reply

  4. Jana
    October 17, 2009 at 21:57

    So I need to be updated to 2.8 :-)
    By the way, you do not know, it's hard? :-)

    Reply

  5. investclubs.ru
    June 10, 2011 at 14:39

    A version for WP 3.0 and higher this feature is enabled by default? Do I understand correctly?

    Reply

Have something to say? Do not be silent!


Your comment will appear after being moderated.
Spam and off-topic posts are deleted.

To insert php-code, use the tag:
<pre lang="php"> php-code </ pre>


I'm not a spammer!