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

Documentation: explain why APCu is not available #13

Closed
mnapoli opened this issue Jun 6, 2018 · 5 comments
Closed

Documentation: explain why APCu is not available #13

mnapoli opened this issue Jun 6, 2018 · 5 comments

Comments

@mnapoli
Copy link
Member

mnapoli commented Jun 6, 2018

APCu does not make sense on lambdas because each lambda boots a new CLI process (there is no shared memory like with PHP-FPM), this needs to be explained in the documentation to avoid surprises.

The idea would be to recommend instead to use a shared cache like Memcached or Redis (AWS supports both for example).

@ghost
Copy link

ghost commented Nov 15, 2018

Hi, so what about OPcache too? There is no profit of the pre-compilation with Lambda? :-(
Any way to share the shm between instances?

@mnapoli
Copy link
Member Author

mnapoli commented Nov 16, 2018

@symcaster Opcache is enabled, see #14

@ghost
Copy link

ghost commented Nov 16, 2018

@mnapoli Thank, having opcache enabled is not the same that having its cache shared between requests, but Ok, you post #14 answer to that precise point.

@mnapoli
Copy link
Member Author

mnapoli commented Nov 16, 2018

OK, then just to be clear for everyone reading this discussion: opcache is enabled and the cache is shared between requests for a single lambda instance.

@mnapoli
Copy link
Member Author

mnapoli commented Dec 19, 2018

We can close this because with 0.3 we will be able to use APCu with PHP-FPM 🎉

@mnapoli mnapoli closed this as completed Dec 19, 2018
brefphp-bot pushed a commit to brefphp-bot/bref that referenced this issue Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant