Randomized Rich Content and Caching
-
I have a site with a couple of randomized content features, and I’m wondering how caching impacts that. For example, the home page has two sections (Featured Music Lessons and Featured Music Workshops) that are supposed to load in 4 random products from that category. I also use Search & Filter Pro in conjunction with Advanced Custom Fields, and many of my search results pages are meant to load in differing orders – some randomized, some based on relevancy (powered by Relevanssi).
My question is – if the homepage is being cached, does that mean it is caching the randomized product selections at the time that cache? At times it seems to hold onto a certain selection of products, even when I refresh. I’ve now tested adding the homepage to cache inclusions, and it seems to be better at randomizing the products on the homepage with each refresh. I just wanted to make sure that my approach is correct, because caching is a very difficult thing to test.
The page I need help with: [log in to see the link]
- The topic ‘Randomized Rich Content and Caching’ is closed to new replies.