Yoskaldyr
Well-known member
In the XenForo_Link::buildPublicLink translateRouteFilterToRegex method is called for each route filter.
And these calls heavy impact on performance especially on forum index page if the board has many forums/categories with route filters for it.
Why not prepare regex before saving them into 'routeFiltersOut' and 'routeFiltersIn' cache keys?
PHP:
list($from, $to) = self::translateRouteFilterToRegex(
$filter['find_route'], $filter['replace_route']
);
Why not prepare regex before saving them into 'routeFiltersOut' and 'routeFiltersIn' cache keys?