feat core
: Add new developer flag for skipping application cache flush
This commit is contained in:
parent
67b2d6fadd
commit
af114490dc
1 changed files with 11 additions and 9 deletions
|
@ -171,6 +171,7 @@ assignflags() {
|
||||||
F_developerIgnoreInstallScript=false
|
F_developerIgnoreInstallScript=false
|
||||||
F_developerIgnoreRebuild=false
|
F_developerIgnoreRebuild=false
|
||||||
F_developerForceMigrate=false
|
F_developerForceMigrate=false
|
||||||
|
F_developerKeepApplicationCache=false
|
||||||
if [[ ( $flags == *"ignorePlaceholders,"* ) || ( $flags == *"ignorePlaceholders" ) ]]; then F_ignorePlaceholders=true ;fi
|
if [[ ( $flags == *"ignorePlaceholders,"* ) || ( $flags == *"ignorePlaceholders" ) ]]; then F_ignorePlaceholders=true ;fi
|
||||||
if [[ ( $flags == *"forceLegacyPlaceholders,"* ) || ( $flags == *"forceLegacyPlaceholders" ) ]]; then F_forceLegacyPlaceholders=true ;fi
|
if [[ ( $flags == *"forceLegacyPlaceholders,"* ) || ( $flags == *"forceLegacyPlaceholders" ) ]]; then F_forceLegacyPlaceholders=true ;fi
|
||||||
if [[ ( $flags == *"hasInstallScript,"* ) || ( $flags == *"hasInstallScript" ) ]]; then F_hasInstallScript=true ;fi
|
if [[ ( $flags == *"hasInstallScript,"* ) || ( $flags == *"hasInstallScript" ) ]]; then F_hasInstallScript=true ;fi
|
||||||
|
@ -179,6 +180,7 @@ assignflags() {
|
||||||
if [[ ( $flags == *"developerIgnoreInstallScript,"* ) || ( $flags == *"developerIgnoreInstallScript" ) ]]; then F_developerIgnoreInstallScript=true ;fi
|
if [[ ( $flags == *"developerIgnoreInstallScript,"* ) || ( $flags == *"developerIgnoreInstallScript" ) ]]; then F_developerIgnoreInstallScript=true ;fi
|
||||||
if [[ ( $flags == *"developerIgnoreRebuild,"* ) || ( $flags == *"developerIgnoreRebuild" ) ]]; then F_developerIgnoreRebuild=true ;fi
|
if [[ ( $flags == *"developerIgnoreRebuild,"* ) || ( $flags == *"developerIgnoreRebuild" ) ]]; then F_developerIgnoreRebuild=true ;fi
|
||||||
if [[ ( $flags == *"developerForceMigrate,"* ) || ( $flags == *"developerForceMigrate" ) ]]; then F_developerForceMigrate=true ;fi
|
if [[ ( $flags == *"developerForceMigrate,"* ) || ( $flags == *"developerForceMigrate" ) ]]; then F_developerForceMigrate=true ;fi
|
||||||
|
if [[ ( $flags == *"developerKeepApplicationCache,"* ) || ( $flags == *"developerKeepApplicationCache" ) ]]; then F_developerKeepApplicationCache=true ;fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1359,7 +1361,7 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) || ( $2 == "-add" ) ]]; then VCMD="
|
||||||
php artisan view:cache
|
php artisan view:cache
|
||||||
php artisan config:cache
|
php artisan config:cache
|
||||||
php artisan route:clear
|
php artisan route:clear
|
||||||
php artisan cache:clear
|
if ! $dev || ! $F_developerKeepApplicationCache; then php artisan cache:clear; fi
|
||||||
} &>> $BLUEPRINT__DEBUG
|
} &>> $BLUEPRINT__DEBUG
|
||||||
|
|
||||||
# Make sure all files have correct permissions.
|
# Make sure all files have correct permissions.
|
||||||
|
|
Loading…
Reference in a new issue