• Resolved wordpressnetwork

    (@wordpressnetwork)


    Hey,

    I do import hundreds of products in my WooCommerce in block, every day one or two times. How does the indexation of your plugin work? Once a day? Or can I set a specific cronjob for your plugin? A best practice would be much appreciated!

    Thanks a lot,
    Stephan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support fesupportteam

    (@fesupportteam)

    Hi @wordpressnetwork

    You can use this function in order to flush it after the importing is done:

    if ( class_exists( '\FilterEverything\Filter\Plugin' ) ) {
        $fe = new \FilterEverything\Filter\Plugin();
        $fe->resetTransitions();
    }

    Best Regards – Victor

    Thread Starter wordpressnetwork

    (@wordpressnetwork)

    Thanks Victor, I will put that in my functions.php and schedule it after the import is done.

    Can you tell me how (and how often) normally the indexation is triggered? And where that information is stored (database or separate file)?

    Thanks a lot

    Stephan

    Plugin Support fesupportteam

    (@fesupportteam)

    Hi @wordpressnetwork

    There is no schedule for that, whenever you hit update the filter set or flush it manually with the function or add the “?reset_filters_cache=true” to the URL on your shop page, for example, mysite.com/?reset_filters_cache=true or update posts/products and hit update it should flush it.

    But if you simply import it, the changes won’t appear. So either flush it manually or use the functions for it whenever you do import a product. Or you can do the cron.

    It is basically the inner cache for the plugin.

    Best Regard – Victor

    Thread Starter wordpressnetwork

    (@wordpressnetwork)

    I understand. Much appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘New products -> indexation’ is closed to new replies.