Gazow on "[Plugin: WooCommerce Products Filter] Filtering Feezes after a few selections, flashes back and fourth"

ساخت وبلاگ

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://wordpress.org/plugins/woocommerce-products-filter/

Hello

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

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

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

- - , .

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 197 تاريخ : پنجشنبه 29 بهمن 1394 ساعت: 9:01