Bash / CLI
Joomla! 6
Joomla! 5
Joomla! 4
CLI
Basic
Clean Cache and Reindex Smart Search via Joomla CLI
Runs cache:clean and finder:index purge via official cli/joomla.php without browser or PHP-FPM timeouts.
scripts/post_deploy.sh
# Limpa todo o cache de sistema e itens expirados
php cli/joomla.php cache:clean
php cli/joomla.php cache:clean-expired
# Limpa e reconstrói integralmente o índice do Smart Search (com_finder)
php cli/joomla.php finder:index purge
Use the matching PHP CLI binary on multi-PHP servers (e.g. php83 or php84).
Technical explanation and best practices
Reindexing large sites in the browser can hit HTTP timeouts. Running php cli/joomla.php finder:index purge over SSH finishes in seconds with minimal memory overhead.