system/config/initconfig.php (ggf. erstellen)
PHP-Code:
<?php
// purge contao cache
\Files::getInstance()->rrdir('var/cache/prod', true);