• Resolved techguysa

    (@techguysa)


    Stock updates with webtoffee import export (product)

    so when stock updates from in stock to not in stock for example it causes the product ID to update gla/jobs/update_products/process_item
    a ton of them

    how do i increase this batch to speed it up.

    the delay is about 2 days as its doing 1 per minute and atm its on 6056 sometimes during peak hours it climbs to the likes of 13000 +/- etc

    i know if i disable google ads it increase the speed dramatically but i need the ads (google ads that sync with google ads accountaccount etc)

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello @techguysa ,

    I understand you want to increase the Action Scheduler batch size to speed up the stock update from the import-export plugin of Webtoffee.

    You can find an example code of how to increase batch size here: https://actionscheduler.org/perf/#increasing-batch-size

    However, it will be a good idea to contact the developers of the plugin you want to speed up to know if they have any other suggestions to increase the performance of their stock update option.

    Thank you.

    Thread Starter techguysa

    (@techguysa)

    hence the post yes.

    Where do i edit these in functions.php
    htaccess
    wpconfig?

    or the plug ins php files?

    tried these it caused crital error then fixed it and doesnt do anything different.

    Plugin Support con

    (@conschneider)

    Engineer

    Hi again,

    This:

    function eg_increase_action_scheduler_batch_size( $batch_size ) {
    	return 30;
    }
    add_filter( 'action_scheduler_queue_runner_batch_size', 'eg_increase_action_scheduler_batch_size' );

    can either go into your theme’s functions.php or you can use a plugin that is able to manage custom PHP snippets.

    Do not put this in any of these:

    htaccess
    wpconfig?
    or the plug ins php files?

    Kind regards,

    Thread Starter techguysa

    (@techguysa)

    no was just saying cause functions.php just crashed when i tried

    ill try again but i mod these after midnight when traffic isnt busy

    never really touch wpconfig htaccess run dif scripts (security)

    thanks again

    will post my findings once done.

    Plugin Support con

    (@conschneider)

    Engineer

    Hi again,

    no was just saying cause functions.php just crashed when i tried

    I see. Thanks for the clarification.

    If it crashes yet again for you, let us know what the exact error message is. That should help us diagnosing this with you.

    Kind regards,

    Thread Starter techguysa

    (@techguysa)

    that critial error (think it was the } at the end of the code on the 3rd line)

    will post on that.

    Plugin Support Kaushik S. a11n

    (@kaushiksomaiya)

    Hi there @techguysa!

    You can also use online tools for checking PHP syntax: https://www.google.com/search?client=firefox-b-d&q=php+syntax+check+online

    Let us know if you are still having any issues, we’ll be happy to help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How do i increase the batch size from 1 to 30’ is closed to new replies.