Relative Content

Tag Archive for phplaravel

Laravel Redis stream worker fills up faster than processing at peak times

looking for some help with my Redis 7 and Laravel 11 custom upsert worker. My project needs fast and advanced reporting. One of my model’s is called StatisticAggregate that aggregates data as the day progresses, take sessions, it’ll increment a row or create it if it’s doesn’t exist for each session.

Laravel Redis stream worker fills up faster than processing at peak times

looking for some help with my Redis 7 and Laravel 11 custom upsert worker. My project needs fast and advanced reporting. One of my model’s is called StatisticAggregate that aggregates data as the day progresses, take sessions, it’ll increment a row or create it if it’s doesn’t exist for each session.

Laravel memory leak when utilising Cache facade in while loop

I’ve got a Laravel 11 application running PHP 8.3 and Redis 7. I’ve got a simple artisan command here logging memory usage from within a while loop. This is a reduced sample code to illustrate the issue. When calling Cache::get() within the loop my memory usage is incrementally getting higher and higher, removing the Cache::get() reference resolves this.

Laravel Defer on API requests

Is it possible to use defer functions on API requests? I can run defer on my website, but through API is not working at all.