Clearing mautic cache
-
@rmdes said in New Email Builder:
php app/console cache:clear in the /app/code directory
Is not working for me today, terminal show: "Could not open input file: app/console"
I need to clear mautic cache, but I cant understand how to do it in cloudron.
-
@mdreira Per https://docs.mautic.org/en/troubleshooting, you have to delete the cache directory. In Cloudron, the cache directory can be cleared as
rm -rf /run/mautic/var/cache/*
. Restarting the app also clears the cache.To use the CLI, you have to use it like below.
sudo -E -u www-data php /app/code/bin/console
-
@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.