contao:automator

This command is an interface to the Automator class of Contao. It mainly consists of common tasks around the maintenance of a Contao installation.

php vendor/bin/contao-console contao:automator [<task>]

The command will prompt you for which task should be executed, if no specific task is provided. The following tasks are available.

TaskDescription
purgeSearchTablesClears the search index by deleting the tables tl_search and tl_search_index.
purgeUndoTableRemoves the temporarily stored undo entries, which allows for restoring deleted entries.
purgeVersionTablePurges the version table tl_version which holds different versions for rows in tables that have the versioning feature enabled.
purgeSystemLogDeletes entries in the system log.
purgeImageCachePurges the image cache by deleting all processed and resized images in the configurable image.target_dir.
purgeScriptCacheRemoves processed and/or minified JavaScript files and Stylesheets.
purgePageCacheClears the page cache by removing cached html responses.
purgeSearchCacheClears the search result cache.
purgeInternalCacheClears Contao’s internal cache for DCA and language files.
purgeTempFolderPurges the system/tmp directory.
purgeRegistrationsPurges the inactivated member registrations.
purgeOptInTokensPurges the expired double opt-in tokens.
purgeXmlFilesRemoves XML files generated by generateXmlFiles task.
generateSitemapGenerates the sitemap.xml files based on the page tree and the settings on the root page.
generateXmlFilesGenerates the sitemap.xml files and calls the hook generateXmlFiles for other bundles to use. The ContaoNewsBundle uses it to generate RSS feeds.
generateSymlinksCreates various symlinks to the web directory, for example publicly reachable file directories, the assets directory or system/themes.
generateInternalCacheWarms up Contao’s internal cache for DCA and language files.