Bladeren bron

Add cache:warmup and --classmap-authoritative

tags/4.0.15.1
Steevan BARBOYON 8 jaren geleden
bovenliggende
commit
b713708221
1 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 3
    1
      init_benchmark.sh

+ 3
- 1
init_benchmark.sh Bestand weergeven

@@ -10,6 +10,8 @@ function clearCacheAndLogs() {
10 10
     [ "$?" != "0" ] && exit 1
11 11
     sudo /bin/chmod -R 777 var/log
12 12
     [ "$?" != "0" ] && exit 1
13
+
14
+    php bin/console cache:warmup
13 15
 }
14 16
 
15 17
 function init() {
@@ -25,7 +27,7 @@ function init() {
25 27
     clearCacheAndLogs
26 28
 
27 29
     export APP_ENV=$env
28
-    composer install --no-dev --optimize-autoloader
30
+    composer install --no-dev --classmap-authoritative
29 31
     [ "$?" != "0" ] && exit 1
30 32
 
31 33
     if [ "$env" == "news" ]; then

Laden…
Annuleren
Opslaan