vendor/shopware/core/System/SalesChannel/Context/Cleanup/CleanupSalesChannelContextTask.php line 9

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\System\SalesChannel\Context\Cleanup;
  3. use Shopware\Core\Framework\Log\Package;
  4. use Shopware\Core\Framework\MessageQueue\ScheduledTask\ScheduledTask;
  5. #[Package('sales-channel')]
  6. class CleanupSalesChannelContextTask extends ScheduledTask
  7. {
  8.     public static function getTaskName(): string
  9.     {
  10.         return 'sales_channel_context.cleanup';
  11.     }
  12.     public static function getDefaultInterval(): int
  13.     {
  14.         return 86400//24 hours
  15.     }
  16. }