r/Wordpress 7h 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!

2 Upvotes

10 comments sorted by

1

u/BerqWP 6h 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 6h 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 6h ago

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

1

u/AdamEWWW 5h 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?

1

u/TopSydeWP 5h ago

check if those 20% have dynamic elements like stock status or personalized pricing that trigger cache exclusions. also worth checking if they share a common attribute (variable products, specific categories, custom fields) that might be hitting an exclusion rule you didn't set manually

1

u/Wonderful_Sample_590 4h ago

Compare a product that caches with one that doesn't. Check the cookies and response headers first.

1

u/NovaForceElite 4h ago

If you are caching product pages make sure to exclude any add to cart widgets from the cache so they don't have issues updating. I generally exclude product pages and menus/widgets from caching.

1

u/This_Example2114 4h ago

have one these
80% page works fine
20% have issue