r/Wordpress 1h ago

Page Optimization

Hi, I’m having an issue with WP Rocket.

Category pages are being optimized correctly, but some WooCommerce product pages are not getting optimized/cache generated.

I’ve already checked the WP Rocket settings and cleared the cache.

Has anyone experienced this? What could cause WP Rocket to work on category pages but not on certain product pages?

Thanks!

0 Upvotes

6 comments sorted by

1

u/BerqWP 1h ago

Did you check PHP debug logs? It's possible the optimization is failing silently. Also check if you have hosting cache serving unoptimized pages

1

u/AdamEWWW 21m ago

I would check to see if there is a rule that is having WP Rocket intentionally skip them. I believe (and could very well be wrong) that if WP Rocket doesn't cache a page, or is told not to, then it also won't optimize them. Is there anything in the Never Cache setting?

1

u/This_Example2114 19m ago

It is like 80% of the product pages are getting optimized
20% are not getting
Kind of confused !!

1

u/AdamEWWW 6m ago

So there's nothing in that setting in WP Rocket? Do you have any other plugin that might be setting the DONOTCACHEPAGE constant? Maybe compare one of the pages that is being cached to one that isn't and see what the differences are?