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

Enable PHP opcache in development #1447

Merged
merged 1 commit into from Nov 11, 2022
Merged

Conversation

swalkinshaw
Copy link
Member

@swalkinshaw swalkinshaw commented Nov 10, 2022

Closes #1442

OPcache was previously disabled in development to ensure no stale cached PHP. However, there are still performance benefits to having OPcache enabled with a revalidate_freq of 0 which will result in OPcache checking for updates on every request (instead of the default of 60 in production).

@swalkinshaw swalkinshaw force-pushed the enable-php-opcache-development branch 2 times, most recently from 1de7765 to ff8bd8a Compare November 10, 2022 00:43
OPcache was previously disabled in development to ensure no stale cached
PHP. However, there are still performance benefits to having OPcache
enabled with a `revalidate_freq` of `0` which will result in OPcache
checking for updates on every request (instead of the default of `60` in
production).
@swalkinshaw swalkinshaw merged commit c91c779 into master Nov 11, 2022
@swalkinshaw swalkinshaw deleted the enable-php-opcache-development branch November 11, 2022 01:12
paulbrzeski pushed a commit to paulbrzeski/trellis that referenced this pull request Mar 3, 2023
OPcache was previously disabled in development to ensure no stale cached
PHP. However, there are still performance benefits to having OPcache
enabled with a `revalidate_freq` of `0` which will result in OPcache
checking for updates on every request (instead of the default of `60` in
production).
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

Successfully merging this pull request may close these issues.

Feature Request: re-enable php opcache for dev-environments?
1 participant