Ready to get started?Download WordPress


CSV Importer
Slow Import ans Solution... (2 posts)

  1. ghalleb
    Posted 4 months ago #

    I found importing posts was very slow. I could only import 1000 posts before having a time out.

    I took a look closely to wordpress code and discovered that adding this line could give a hude optimization:

    wp_defer_term_counting( true );
    wp_defer_comment_counting( true );

    Put that in your function file for example. But then, don't forget to remove it, or add this after you are done(just to be sure):

    wp_defer_term_counting( false );
    wp_defer_comment_counting( false );

    I hope it will help someone!


  2. BigDogSF
    Posted 1 month ago #

    Hi...tried this, saw no difference. I'm wondering if it is due to the fact that I am importing to a custom post type.? Or placed in wrong file...I put it in the theme functions.php.

    Any thoughts?


You must log in to post.

About this Plugin

About this Topic


No tags yet.