Upgrades
Bare Metal
If you perform a Mbin upgrade (eg. git pull), be aware to always execute the following Bash script:
./bin/post-upgrade
Clear Cache
For stale rendered HTML fragments or application cache, run the following command from the Mbin:
APP_ENV=prod APP_DEBUG=0 php bin/console cache:pool:clear cache.app
post-upgrade already clears framework cache, including compiled Twig templates. To repeat manually, run APP_ENV=prod APP_DEBUG=0 php bin/console cache:clear. If OPcache is enabled, also reload PHP-FPM. See Symfony's cache-clearing documentation.
FLUSHDB (via redis-cli, valkey-cli, or keydb-cli) deletes every key in the selected database, including sessions since Mbin v1.11.0 and other application data, potentially logging users out. It cannot target a key prefix, and persistence does not protect against deletion. Use the scoped cache command above for routine clearing; see also the session persistence guide.
Docker
- Pull the latest Docker image:
docker compose pull
Or, if you are building locally, then you'll need to rebuild the Mbin docker image (without using cached layers):
docker compose build --no-cache
- Bring down the containers and up again (with
-dfor detach):
docker compose down
docker compose up -d