PaginationSize
Ensures that objects are paginated with performant sizes so that too many objects aren't loaded at once. This helps to keep response times low.
Anchor to ExamplesExamples
The following examples contain code snippets that either fail or pass this check.
Anchor to ✗ Fail✗ Fail
The following example includes a pagination size that leads to too many products on a single page, exceeding the max_size
value:
{% paginate collection.products by 999 %}
Anchor to ✓ Pass✓ Pass
The following example includes a pagination size that will not negatively impact performance:
{% paginate collection.products by 12 %}
Anchor to OptionsOptions
PaginationSize
enabledtrue
min_size1
max_size50
Parameter | Description |
---|---|
enabled | Whether this check is enabled. |
min_size | The minimum valid pagination size. |
max_size | The maximum valid pagination size. |
Anchor to Disabling this checkDisabling this check
This check is safe to disable.
Was this page helpful?