Forums Forums Search & Filter Pro Forced to Manually Rebuild Product Cache

Tagged: ,

Viewing 1 post (of 1 total)
  • Trevor
    #272878

    This is added to the functions.php file to make sure imported records are indexed by S&F and Relevanssi:

    add_action('pmxi_saved_post', 'wp_all_import_post_saved', 1000, 1);
    function wp_all_import_post_saved($id) {
        do_action('search_filter_update_post_cache', $id);
        relevanssi_index_doc($id, true, relevanssi_get_custom_fields(), true);
    }

    I am not sure if you are using Relevanssi or not? If not, you don’t need this line:

    relevanssi_index_doc($id, true, relevanssi_get_custom_fields(), true);

Viewing 1 post (of 1 total)