You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
# Workers pool settings.pool:
# How many worker processes will be started. Zero (or nothing) means the number of logical CPUs.## Default: 0num_workers: 2
The singleton will persist during the HTTP request processing and will be re-created for the next request (you can test it with the multiple calling increment() method in your view). Also, you can read this interesting article.
But, if you want to have a "true" singleton - you should make an instance of your container before the requests processing, e.g. put it into the warm section in the configuration file:
Thank you for your reply.
No more questions. I'm even a little ashamed that I did not look in the Spiral\RoadRunnerLaravel\Worker.php - all the answers are there.
A clean installation of this repository, but:
.rr.local.yml
MyCounter.php
In AppServiceProvider
In welcome.blade.php
In the log file each request:
Obviously, the counter is reset every time.
Why? What am I doing wrong?
What power kills my singleton "mc"?
The text was updated successfully, but these errors were encountered: