• Resolved WarrenIndLLC

    (@warrenindllc)


    Hey Guys,

    I have WooSearch Pro installed (although I have forgotten my login to the pro version on the website). I was wondering, as my client’s website automatically posts products from API key. Is there a way to have automated re-indexing? As new products that are posted through API are unsearchable until we actually have to “click” the button. This would help greatly if this was setup. Even with an option to do it once per hour.

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hello,

    Yes, it is possible.

    You can trigger re-indexing of your products by calling

    do_action('aws_reindex_table');

    If you want to add this action as cron job you can do something like

    add_action( 'wp', 'aws_set_cron' );
    
    function aws_set_cron() {
        if ( ! wp_next_scheduled ( 'aws_reindex_table' ) ) {
            wp_schedule_event(time(), 'hourly', 'aws_reindex_table');
        }
    } 

    This code will run re-index cron job every hour.

Viewing 1 replies (of 1 total)
  • The topic ‘Automated Re-Indexing’ is closed to new replies.