diff --git a/config/cache.php b/config/cache.php index 444d01e06..d4171e221 100644 --- a/config/cache.php +++ b/config/cache.php @@ -15,7 +15,7 @@ | */ - 'default' => env('CACHE_DRIVER', 'database'), + 'default' => env('CACHE_DRIVER', 'file'), /* |-------------------------------------------------------------------------- diff --git a/docker/deploy/etc/s6-overlay/scripts/laravel-automations b/docker/deploy/etc/s6-overlay/scripts/laravel-automations index 098ebb92d..d833a8446 100644 --- a/docker/deploy/etc/s6-overlay/scripts/laravel-automations +++ b/docker/deploy/etc/s6-overlay/scripts/laravel-automations @@ -16,6 +16,12 @@ 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..."