Increase max memory from 128M to 256M

This commit is contained in:
Squidly271 2022-12-03 19:21:55 -05:00
parent d31fcf6353
commit 3e77007859
4 changed files with 5 additions and 4 deletions

View File

@ -2,8 +2,8 @@
4e55f7483b661af21a25b677179baffe ./CA_notices.page
4c5d4598e1bafa46bd90c27cbe302122 ./ca_settings.page
e8d29607ec792ddf9f6832b10ee70fdc ./default.cfg
6b8927322c6c479d9422c4818c8c5f3e ./include/exec.php
9441e82a241d88d6cdbee4e910a5cdda ./include/helpers.php
4b44cdcda03fe86956e0089da72ca41c ./include/exec.php
c024b16874373b3d45f3e082a1dfb49b ./include/helpers.php
116042a918060278e77379b0dd73482c ./include/paths.php
532fffdf939594c143e679da02bd841e ./javascript/libraries.js
71f911a818d88d3d567f8a2898094ee2 ./README.md

View File

@ -9,6 +9,7 @@
error_reporting(E_ALL);
ini_set('log_errors',TRUE);
ini_set('error_log',"/tmp/php");
ini_set('memory_limit','256M');
$unRaidSettings = parse_ini_file("/etc/unraid-version");
### Translations section has to be first so that nothing else winds up caching the file(s)
@ -736,7 +737,7 @@ function get_content() {
if ( strpos($category,":") && $filter ) {
$disp = readJsonFile($caPaths['community-templates-allSearchResults']);
$file = $disp['community'];
$file = &$disp['community'];
} else
$file = &$GLOBALS['templates'];
@ -2340,7 +2341,6 @@ function changeMaxPerPage() {
# Basically a duplicate of action centre code in previous apps #
################################################################
function enableActionCentre() {
return;
global $caPaths, $caSettings, $DockerClient;
# wait til check for updates is finished

View File

@ -52,6 +52,7 @@ function readJsonFile($filename) {
debug("JSON Read Error ($filename)");
}
debug("Memory Usage:".round(memory_get_usage()/1048576,2)." MB");
return is_array($json) ? $json : array();
}
function writeJsonFile($filename,$jsonArray) {