PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

WP Fastest Cache - issue

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello,

we are using wp fastest cache on our wordpress site. Once e.g. a product category is cached the pagination or filter request is no longer sent / proceeded.

This wasn't an issue before. Could it because of nonces? It just displays the loading status but never gets loaded.

We disabled caching for now but that makes our site slower.

Thanks!

Hello

Please  drop me exact link to  the  issue

Hello,

category link is in private data tab and keep it private please.

If you scroll at the bottom of the category and click on any number at pagination it's just going to show loading status but it never gets loaded.

Using WP Fastest Cache - it works fine for logged in users or when cache is being disabled.

Thanks

A quick update: This is what the XHR (ajax requests) gives back on filter / pagination: nonce error

XHR call is in the private data tab. Please keep the site link private.

So it must be cache related.

FYI: Sometimes it works fine, sometimes not and throwing the nonce error. I guess it depends on the nonce lifetime.

Hello,

we debugged this whole thing on our own. The problem is: When uncached page is loaded a nonce is set if after its lifetime. It's then being cached by WP Fastest Cache and if cache is not purged regularly, the nonce is after its lifetime for this XHR (Ajax) call: woof_draw_products

We've set-up a full cache clear at midnight using cron at the moment, but its not ideal.

Do you need to verify nonce on the frontend for not logged-in customers at all?

Thanks

Hello

You can try to disable ajax mode

OR

in file - \woocommerce-products-filter\index.php - try to comment/delete this line - https://share.pluginus.net/image/i20241105120750.png and  https://share.pluginus.net/image/i20241105120822.png

Hello,

yeah, you're right. When we delete lines 2995,2996,2997 in method woof_redraw_woof it works like a charm!

Is there a need for nonce checking on the frontend due to security? FYI not even Woocommerce uses them on the frontend actions e.g.

wc-ajax:
add_to_cart
If there's no need for them in this method for the frontend ajax redrawing it'd be good if you can update it.

M.

I wrote to you in private data

 

Ah okay, thank you!

We'll clear site cache once daily then.

Welcome;)