• Resolved Gazow

    (@gazow)


    Hello, im having a bit of trouble with the ajax loading, the first 2-3 tags selected work fine, then it starts to slow down, and by the 5-6th different tag chosen it nearly freezes and then a while later will show the new content and then flash back and fourth a few times from the previous content (im not even sure how it can do that)

    any ideas on what might be happeneing?

    https://www.ads-software.com/plugins/woocommerce-products-filter/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author RealMag777

    (@realmag777)

    Hello

    Yes, wp_query creates in this case very big and complex MySQL query and this makes filtering slow

    Read this please: https://www.woocommerce-filter.com/searching-is-slow/

    Thread Starter Gazow

    (@gazow)

    well after a good deal of work, i managed to track down the issue, quite frankly i still dont understand how it was even possible, but it wasnt related to the complexity of the filter..

    in the function –

    function woof_init_radios() {
    if (icheck_skin != ‘none’) {..}
    else{…}
    }

    the else statment and somehow not the entire function itself was making a request multiple times each press (an additional one for each time a request was made) and after about 7 being fired at once the server would time out, i managed to fix with an extra conditional that was set inside the else statement, but why it could possibly only repeate part of a function is absurd

    Plugin Author RealMag777

    (@realmag777)

    Hello

    Thank you for cooperation. It is really funny – but woof_init_radios is just js function for checkboxes

    About repeating – A met 2 such cases and resolve it in the next way:
    * open js/front.js file
    * find function woof_init_native_woo_price_filter
    * comment there calling of function woof_submit_link(woof_get_submit_link()); -> https://clip2net.com/s/3uuGa6o

    Try it …

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filtering Feezes after a few selections, flashes back and fourth’ is closed to new replies.