I'm looking for MODX getChunk() alternative mostly because it seems to be really slow when outputting a lot of times. When I use it once in a snippet then I could hardly notice its speed, but if it's used in a loop then each second matters.
I'm outputting ~1300 images 100 per page as part of the gallery and it takes:
- 6-7 seconds when the output is placed in a chunk $output .= $modx->getChunk('chunkname');
- 2-3 seconds when the output is plain HTML
Does anyone know faster alternative to output the result of image query using chunk?