73b561ed33
- edubox-tools.patch : getShopDomain/Ssl conservent les ports non standards - edubox-configuration.patch : PS_SHOP_DOMAIN, _PS_BASE_URL_, PS_SSL_ENABLED… résolus dynamiquement - edubox-shop-getbaseurl.patch : Shop::getBaseURL() utilise le host de la requête - edubox-shopurl.patch : getMainShopDomain conserve les ports non standards - edubox-clear-cache-init.sh : vidage des caches à chaque démarrage - seed.ts : passage au tag 9-edubox-9 - README mis à jour avec les nouveaux patches
11 lines
457 B
Bash
11 lines
457 B
Bash
#!/bin/bash
|
|
# EduBox: clear PrestaShop caches at every container start so that dynamic
|
|
# domains/ports (localhost:PORT or reverse-proxy public URL) are picked up.
|
|
echo "* EduBox: clearing PrestaShop caches for dynamic domain..."
|
|
rm -rf /var/www/html/var/cache/*
|
|
rm -rf /var/www/html/app/cache/*
|
|
rm -rf /var/www/html/cache/smarty/cache/*
|
|
rm -rf /var/www/html/cache/smarty/compile/*
|
|
rm -rf /var/www/html/themes/*/assets/cache/*
|
|
rm -rf /var/www/html/img/tmp/*
|