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
Hi, thanks for great project!
I want to share with you some case that I have.
We are using kubernetes so we have different pods for queue and web app. In this case I`ve tried to set connection to sync in config, but I think this is ugly hack ). So maybe some ideas how to solve this case in correct way.
Maybe some artisan command which adds all files to preloading (we can run any command in any pod). These files can be cached into redis cache during app lifetime or something more clever. Thanks!
Maybe some artisan command which adds all files to preloading
I thought of that, but stats for Opcache work only for the CLI, not the live app.
Also, the list must be available as a file before PHP starts, and the only way to accomplish that is by saving that file somewhere. I can't rely on redis or else unless another app actually retrieves and writes the file.
One alternative would be to manually save the file list with the ListGenerated event, and before the main app starts, use an Artisan command to retrieve it from redis and then write the file with its contents.
This is just a list of tentative features for this package, on version 2.x, in no particular order.
preload:retrieve
)You're all free to suggest new features using the issue tracker.
The text was updated successfully, but these errors were encountered: