Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mix-manifest.json should be cached or (even better) compiled #3367

Open
marcelgleis opened this issue Jul 16, 2023 · 0 comments
Open

mix-manifest.json should be cached or (even better) compiled #3367

marcelgleis opened this issue Jul 16, 2023 · 0 comments

Comments

@marcelgleis
Copy link

marcelgleis commented Jul 16, 2023

Even the latest code of Illuminate/Foundation/Mix.php has this code in the __invoke function:

$manifests[$manifestPath] = json_decode(file_get_contents($manifestPath), true);

see https://github.com/laravel/framework/blob/10.x/src/Illuminate/Foundation/Mix.php

In my high traffic app the mix-manifest.json is about 30.000 bytes big and read+parsed on each request.

  • Is it possible to use caching here?
  • Or would it even be possible to compile it to an PHP array which is then cachable by OPcache?
@marcelgleis marcelgleis changed the title mix-manifest.json should be cached or even better compiled mix-manifest.json should be cached or (even better) compiled Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant