From 03258bb1a90e1b03c340e67cb8f2aeb686d3ccf6 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Mon, 4 Aug 2025 12:23:33 +0200 Subject: [PATCH] improved performance of vue modules --- Layout/default/footer.php | 4 +-- Layout/default/vueHeader.php | 2 +- .../WarehouseShippingNoteController.php | 3 -- public/index.php | 35 ++++++++++++------- 4 files changed, 24 insertions(+), 20 deletions(-) diff --git a/Layout/default/footer.php b/Layout/default/footer.php index 1ccb6c055..d937f845c 100644 --- a/Layout/default/footer.php +++ b/Layout/default/footer.php @@ -15,10 +15,8 @@ - - is("employee")): ?> - + - + diff --git a/application/WarehouseShippingNote/WarehouseShippingNoteController.php b/application/WarehouseShippingNote/WarehouseShippingNoteController.php index 19009f358..c95cd762b 100644 --- a/application/WarehouseShippingNote/WarehouseShippingNoteController.php +++ b/application/WarehouseShippingNote/WarehouseShippingNoteController.php @@ -28,10 +28,7 @@ class WarehouseShippingNoteController extends TTCrud { ['key' => 'actions', 'text' => 'Aktionen', 'required' => false, 'modal' => false, 'table' => ['filter' => false, 'sortable' => false, 'class' => 'text-center']],]; protected array $defaultOrder = ['key' => 'create', 'order' => 'DESC']; - protected array $additionalJSVariables = ['WAREHOUSE_ADMIN' => true]; - protected array $additionalHead = ['']; - protected array $infoMessages = ['create' => 'Lieferschein wurde erstellt.', 'update' => 'Lieferschein wurde aktualisiert', 'delete' => 'Lieferschein wurde gelöscht', diff --git a/public/index.php b/public/index.php index 2a565f805..2d0040714 100755 --- a/public/index.php +++ b/public/index.php @@ -4,18 +4,27 @@ */ // phpinfo(); exit; define('mfUI',"web"); +// set max mem to 4GB +ini_set('memory_limit', '4096M'); + +//display errors +ini_set('display_errors', 1); +ini_set('display_startup_errors', 1); +ini_set('html_errors', 1); + + if(file_exists("../config/config.php")) { - require("../config/config.php"); + require("../config/config.php"); } else { - die("CANNOT FIND CONFIGFILE!\n\nThis is a serious error. You should not run your mvcfronk application without a configfile. Not proceeding."); + die("CANNOT FIND CONFIGFILE!\n\nThis is a serious error. You should not run your mvcfronk application without a configfile. Not proceeding."); } if(defined('MFLOCALE_TIME')) { - setlocale(LC_TIME, MFLOCALE_TIME); + setlocale(LC_TIME, MFLOCALE_TIME); } if(defined('MFLOCALE_MONETARY')) { - setlocale(LC_MONETARY, MFLOCALE_MONETARY); + setlocale(LC_MONETARY, MFLOCALE_MONETARY); } /* disabled because of issues with saving float values to mysql if(defined('MFLOCALE_NUMERIC')) { @@ -36,14 +45,14 @@ $app=new mfRouter($request); if(defined("MFVALUECACHE_DEBUG") && MFVALUECACHE_DEBUG) { - $i = 0; - $cache = mfValuecache::singleton()->getCache(); - echo "
\n";
-    echo "mfValuecache keys total: ".count($cache)."\n";
-    foreach($cache as $key => $value) {
-        echo "\t$i => $key (". gettype($value).")\n";
-        $i++;
-    }
+  $i = 0;
+  $cache = mfValuecache::singleton()->getCache();
+  echo "
\n";
+  echo "mfValuecache keys total: ".count($cache)."\n";
+  foreach($cache as $key => $value) {
+    echo "\t$i => $key (". gettype($value).")\n";
+    $i++;
+  }
 
-    echo "
"; + echo "
"; }