[Bug] Removed initial cache clear on startup (#1093)

This commit is contained in:
Alex Justesen
2024-02-03 07:42:25 -05:00
committed by GitHub
parent 4b5def7feb
commit e334aec4db
@@ -16,12 +16,6 @@ chown -R webuser:webgroup $WEBUSER_HOME/storage
echo "✅ Permissions fixed."
echo ""
# Build cache
echo "🧹 Clearing any previous caches..."
s6-setuidgid webuser php $WEBUSER_HOME/artisan optimize:clear --no-ansi -q
echo "✅ Cache cleared."
echo ""
if [ ${DB_CONNECTION:="sqlite"} = "sqlite" ]; then
# create symlinks
echo "🔗 Creating database symlink..."
@@ -89,7 +83,7 @@ fi
echo ""
# Build cache
# Refresh cache
echo "💰 Building the cache..."
s6-setuidgid webuser php $WEBUSER_HOME/artisan view:clear --no-ansi -q
s6-setuidgid webuser php $WEBUSER_HOME/artisan optimize --no-ansi -q