I'd like to know if this type of loop would cause performance problems. It would happen in a product grid.
(not the correct syntax, but shows my thought process)
for product in shop.all-products
for tag in product.all-tags
if tag contains 'string'
show product
I'm asking for a shop that currently has about 500 products and each product may have up to about ten tags. So this would loop through all products in the store and all tags in each product.
It's handled server-side, so I'm also wondering if the HTML output is cached so that the Liquid won't need to run every time?
Thanks