Originally Posted by
Website Rob
Speaking of which, you are probably familiar with how WordPress allows one to determine memory limit usage in the "default-constants.php" file. Does Zen Cart have such a setting?
No. Given that Zen Cart's needs are so low it's rare to have a legitimate memory issue unless you're using a very badly configured server, in which case you've got even bigger problems.
One exception is if you're running specific batch scripts (that aren't part of Zen Cart) that don't release memory well; in that case you can set the memory limit yourself during those scripts ... and probably should set execution time too.
But, if you really want a file to set it in for yourself, feel free:
/includes/extra_configures/custom_memory_limit.php
Code:
@ini_set( 'memory_limit', '256M' );
Just remember that this overrides whatever you've set in your hosting company's control panel PHP preferences, so now you have "yet another" place to have to check when troubleshooting things.
Bookmarks