• Resolved electronicsalm

    (@electronicsalm)


    I am importing products from shopmaster.com into my site.

    it takes roughly 10 seconds to upload a product to woocommerce . Each product has multiple images and product attributes.

    10 seconds seems too much, i read about optimizing the writing speed for woocommerce and it seems the only way was to disable full wordpress loading during product import ( when shopmaster calls woocommerce api to write products into my store )

    I know that i can load minimal wordpress without themes and plugins by including the following snippet into my code

    //Tell WordPress to only load the basics
    define('SHORTINIT',1);
    
    //get path of wp-load.php and load it
    require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php';

    Am wondering where i should place the code since shopmaster.com calls woocommerce directly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Grigorij S. a11n

    (@grigaswp)

    Hi there,

    Thank you for reaching out!

    I understand that you’d like to only load the “short” version of WordPress in order to speed up product import process and you’d like to know where to place define('SHORTINIT',1); and require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php';

    It looks like both should be added to wp-config.php file:

    https://wpengineer.com/2449/load-minimum-of-wordpress/

    I hope this helps!

    Plugin Support Grigorij S. a11n

    (@grigaswp)

    Hi there,

    We haven’t heard from you in a while so I’ll be marking this thread as resolved.

    Feel free to open a new thread and link to this one if you have further questions though.

    Have a wonderful day ahead!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Load only wordpress core during woocommerce product import’ is closed to new replies.