Bug Report: Taking Too Much Time Before Recipt Print.

Taking Too Much Time Before Recipt Print.

Hello, After clicking Payment on POS its taking 4-5 second before showing the receipt. can you please make it faster?

A

Ashik

Reported
Hello,
After clicking Payment on POS its taking 4-5 second before showing the receipt. can you please make it faster?
  • MS

    Mian Saleem

    Answered
    Hello,

    Please use queue (`QUEUE_CONNECTION` in `.env` file). You can check the [Laravel Docs](https://laravel.com/docs/13.x/queues) for more info.

    Thank you
  • A

    Ashik

    Answered
    **[@Mian Saleem](/u/saleem)** i have tried but its not working. can you provide me step by step guideline ?
  • MS

    Mian Saleem

    Answered
    Hello,

    I am not sure what you have tried but you only need to run the queue work command `php artisan queue:work` then edit `.env` file to set `QUEUE_CONNECTION=database`

    If set correctly and queue running then the system will do most of the task in the background like sync and emails etc. But queue job not running and you updated the env file then the task will be pending till you run the queue worker. Most server management like Laravel Forge, Cloudway and Ploi has option to easily enable this. For cPanel and other you can run cron job `php artisan queue:work --stop-when-empty`

    Thank you
  • Login to Reply