Cookie Consent Manager

Scheduled Tasks

The plugin registers two scheduled tasks. You find them in the administration under Settings → System → Tasks.

Task Technical name Interval Purpose
Clean up consent log prems_cookie_consent.cleanup_consent_log 30 days Deletes log entries older than the configured retention period
Cookie scan prems_cookie_consent.cookie_scan 7 days Scans the storefront for new cookies automatically (premium)

Prerequisite

Both tasks only run when the Shopware message consumer is active:

bin/console messenger:consume async low_priority --time-limit=60

On production systems the consumer should run permanently via a systemd service or supervisor. If it does not run, the consent log grows indefinitely and the automatic scan never happens.

Triggering manually

bin/console scheduled-task:run-single prems_cookie_consent.cleanup_consent_log
bin/console scheduled-task:run-single prems_cookie_consent.cookie_scan

Notes

  • The cookie scan only runs when Scan the shop for cookies weekly is enabled in the plugin configuration and premium is unlocked. You then see the result under Cookie Scanner.
  • The cleanup follows the field Consent log retention (months). Do not set the retention shorter than the consent validity — otherwise you delete the proof for consents that are still valid.