[FIX] categories: Only check perms etc on $maxRecords of found objects rather than the whole data-set, unless $maxRecords is set to -1. The category plugin, for instance, was filtering all objects (could be thousands) while only being asked to return 10 items, resulting in up to a minute for some pages to render.
[FIX] categories: Only check perms etc on $maxRecords of found objects rather than the whole data-set, unless $maxRecords is set to -1.
The category plugin, for instance, was filtering all objects (could be thousands) while only being asked to return 10 items, resulting in up to a minute for some pages to render.

git-svn-id: fe65cb8b726aa1bab0c239f321eb4f822d15ce08@48196 b456876b-0849-0410-b77d-98878d47e9d5

changi67/tiki,changi67/tiki,tikiorg/tiki,changi67/tiki,changi67/tiki,tikiorg/tiki,tikiorg/tiki,oregional/tiki,oregional/tiki,oregional/tiki,changi67/tiki,oregional/tiki,tikiorg/tiki