0

I am trying to create a shipping time indicator by pulling in the current time and if it falls within our shipping rules, it will display ships today, or ships tomorrow. That being said, I am running into a caching issue where after the content is dynamically generated once, it will then cache it for every load following.

For example, I went to my Magento_Catalog/templates/product/list.phtml and added a random number generator to the product list. Every time I refresh it, it displays the same number.

Is there a way around this?

Do i need to use a front end solution?

1

I have suggestions for you:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.