Skip to content

Commit 6af5c10

Browse files
authored
[Bugfix] Clear cache on startup and default cache driver to file (alexjustesen#841)
1 parent 4b1ca32 commit 6af5c10

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

config/cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
|
1616
*/
1717

18-
'default' => env('CACHE_DRIVER', 'database'),
18+
'default' => env('CACHE_DRIVER', 'file'),
1919

2020
/*
2121
|--------------------------------------------------------------------------

docker/deploy/etc/s6-overlay/scripts/laravel-automations

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ chown -R webuser:webgroup $WEBUSER_HOME/storage
1616
echo "✅ Permissions fixed."
1717
echo ""
1818

19+
# Build cache
20+
echo "🧹 Clearing any previous caches..."
21+
s6-setuidgid webuser php $WEBUSER_HOME/artisan optimize:clear --no-ansi -q
22+
echo "✅ Cache cleared."
23+
echo ""
24+
1925
if [ ${DB_CONNECTION:="sqlite"} = "sqlite" ]; then
2026
# create symlinks
2127
echo "🔗 Creating database symlink..."

0 commit comments

Comments
 (0)