Slow transient updates when using lots of variations
-
We’re currently developing a website where products can have lots of variations (around 400 variations per product).
I’ve found that on the product category pages, the load time of the page is very slow (10-20 seconds). We have it set to 30 products per page. When you click on the pagination and go to page 2, 3, 4, etc the load time is also slow.
However, second time around, when you look at the same pages it loads quickly (1-2 seconds).
I notice that if I clear all transients, the issue returns. So I believe that on the product category pages, Woo is delving into each product and looping through the variations, perhaps to find the smallest price or for some other reason, and then caching the values in transients.
Is this a known issue when using lots of variations? I tried enabling object cache and also page cache, but obviously these things don’t help when it’s time for the cache to be cleared and Woo repeats the above process.
Thanks,
- The topic ‘Slow transient updates when using lots of variations’ is closed to new replies.