• Is there a limit on the number of comments you can insert with the WP APIs?

    I have created a utility that migrates posts and comments from a different bogging platform to WordPress and everything seems to work fine until I hit 210 comment count. If I just migrate posts then it’s about 260 posts.

    To import the 200 comments it takes about 5 mins to run and for just posts it’s about the same. The importer just dies after that but no fatal errors.

    I did some digging but couldn’t find anything in the API documentation.

Viewing 1 replies (of 1 total)
  • Thread Starter briancostea

    (@briancostea)

    hi all,

    in case anyone else runs into this I got to the bottom of it. the problem was php’s 300 second time limit on scripts. I added this to the top of the scheduled event function and all is right in the world. hopefully this will help some other poor soul.

    set_time_limit(0);

Viewing 1 replies (of 1 total)
  • The topic ‘Limit on inserting comments and posts using API?’ is closed to new replies.