@mdreira I tried this just to make sure 🙂 and it does seem to work.
root@18fbc0ef-26ec-4e20-af56-cafd68111536:/app/code# sudo -E -u www-data php /app/code/bin/console cache:clear
// Clearing the cache for the prod environment with debug false
[OK] Cache for the "prod" environment (debug=false) was successfully cleared.
@girish I guess this is like another time it happened to me, apps where auto-updated (sunday is our auto update day) so I wasn't sure in what version I was on anymore, after checking it seems all my mautic instances are on 3.x, thanks a lot !