Problem/Motivation
Acquia ran a readiness assessment on a site using XML sitemap, and it had a failure in the setMemoryLimit function.
The exact failure is "PHP memory overrides in code should not exceed 1G."
Their assessment fails XML sitemap because hardcoded memory limits were detected.
Code - return @ini_set('memory_limit', $new_limit);
Line Number - 256
File Location - /mnt/www/html/startheregetthere/docroot/../docroot/modules/contrib/xmlsitemap/src/XmlSitemapGenerator.php
Steps to reproduce
Proposed resolution
I need advice on how to proceed with the changes that should be made to avoid hardcoded memory limits in XML sitemap