Skip to main content
2 votes

Lowering memory usage on task batches

Ok, update.. The problem of my high memory usage was caused by (I think the logging of) devmode.. When I set devmode to false the moment that hit 10+gig memory before now has 100mb of memory usage... ...
Pieter-Jan De Bruyne's user avatar
1 vote

Use Twig's batch filter with conditional

I don't think you can test a conditional against a batch set like this. I think it's testing each batched set against the conditional instead of each item inside the batched sets which is what you're ...
Alex Roper's user avatar
  • 2,642
1 vote

Attempting to create a complicated grid layout with batch

I think I got it. Here's what I did: {% for entry in items|batch(10) %} <div class="set"> {% for batch in entry[0:3] %} {% if loop.index == 1 %} <div class="rowOne"> ...
erich's user avatar
  • 31

Only top scored, non community-wiki answers of a minimum length are eligible