Allowed Memory Size Of 268435456 Bytes

Hello
I am getting the following error when clicking on a category named Test
FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32 bytes) in /home/mydomain/public_html/app/functions/fn.catalog.php on line 736" while reading response header from upstream, client: 24.xx.xx.xx, server: www.mydomain.com, request: "GET /test-page-313/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.mydomain.com", referrer: "http://www.mydomain.com/wholesale-towels/"
My 736 Line is as follows
In my php.ini I've already increase the memory_limit to = 1G
    for ($qty = $min_qty; $qty <= $max_qty; $qty += $product['qty_step']) {
        $qty_content[] = $qty;
    }
}

You must have large categories. Increase 'memory_limit' in config.local.php from 256M to 512M (or larger if needed)

Thanks . That seems to fix the error :