Category: Laravel

We think you might be interested in this job:

Senior PHP Developer

American Estate & Trust

Recently, we came upon another use case for the package: to execute something once and only once.

The Blink cache is stored on a singleton object, so it’s destroyed at the end of the request (similar to Laravel’s array cache driver).

Say we want to generate and store PDF invoices for an order.

If someone modifies an order and an order line in the same request, GenerateInvoicePdf will be dispatched twice, clogging the queue with unnecessary work.

Here’s where Blink comes in. Instead of using Blink to store something, we’ll use it to execute something only once.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Community Partners