Could be Laravel run totally in memory? #39409
-
In a free time I am thinking if Laravel could be preloaded fully from memory. This would require that everything that Laravel caches to be "regeneratable" on demand, ie. if you have 100 blade files then you would need to be able to create its cached version without visiting the view by navigation through app (or you have to create some awkward crawling scripts). This should be doable as cached view does not depend on execution flow of blade statements, whenever user is admin or not the cached version of the blade file at Cache for config files already works that way afaik. Alternatively we could get a way to cache views at some ephemeral redis store? I think that this is not that obvious After all of that, it would require PHP to preload the code responsible. Ideally the whole /app directory The .env files could be also loaded from a Redis store (actaully env is also cache'able as a config command part, but redis is more microservice oriented feature on the stack and allows us to give a little more security) At this point there would be close to none i/o disk hits, ight? To fulfill some of the possible preassumes: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Do you mean like octane? https://laravel.com/docs/8.x/octane |
Beta Was this translation helpful? Give feedback.
Do you mean like octane? https://laravel.com/docs/8.x/octane
It keeps your app in memory