Discussion
Shopify
Liquid Error: 'Memory limits exceeded' in collection.liquid loop. How to optimize?
Robert Hosting
0 reputation
1 month ago
112 views
3 replies
3 Replies
Sophie Shopper
· 1 month ago
Don't use `collection.products` inside a snippet rendered 50 times. Pass the product object explicitly.
Alex Woo
· 1 month ago
You are likely nesting too many `{% for %}` loops. Limit the depth to 50 products.
Alex Woo
· 1 month ago
Use `{% paginate collection.products by 20 %}` to handle the memory load better.
You must be logged in to reply.
Log In to ReplyRelated Discussions
How do I access Metafields in a .js file for my custom section?
3 replies
2 months ago
Why is 'img_url' filter deprecation warning showing up in my theme editor?
3 replies
1 month ago
How to filter a collection by tag using URL parameters without an app?
3 replies
1 month ago
How to show different content for logged-in customers vs guests?
3 replies
1 month ago
Implementing 'Add to Cart' via AJAX. Getting 422 Unprocessable Entity.
3 replies
1 month ago