Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Cs-Cart Memory_Limit Rate Topic   - - - - -

 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3876 posts

Posted 17 January 2020 - 05:55 PM #1

Does anyone know where CSC sets the memory_limit?  It used to be in /config.local.php but it looks like they removed it in 4.9.2.

// Set maximum memory limit
if (PHP_INT_SIZE == 4 && (substr(ini_get('memory_limit'), 0, -1) < "64")) {
  // 32bit PHP
  @ini_set('memory_limit', '64M');
} elseif (PHP_INT_SIZE == 8 && (substr(ini_get('memory_limit'), 0, -1) < "256")) {
  // 64bit PHP
  @ini_set('memory_limit', '256M');
}

 



 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3876 posts

Posted 17 January 2020 - 07:48 PM #2

I went ahead and added the following to /config.local.php and it worked.

// Set maximum memory limit
@ini_set('memory_limit', '512M');

 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20080 posts

Posted 20 January 2020 - 05:47 AM #3

It is now in app/Tygh/Bootstrap.php


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3876 posts

Posted 20 January 2020 - 12:14 PM #4

Got it.  Thanks eCom.