-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
use var PHP_OPCACHE_MEMORY_CONSUMPTION for configuration #2090
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Thomas Clavier <tom@tcweb.org>
Signed-off-by: Thomas Clavier <tom@tcweb.org>
I think maybe using "sed" to change original files? |
using |
Sorry, That all version was build by template files, your code is right. |
This requires some documentation in the README. |
RUN { \ | ||
echo 'opcache.enable=1'; \ | ||
echo 'opcache.interned_strings_buffer=32'; \ | ||
echo 'opcache.max_accelerated_files=10000'; \ | ||
echo 'opcache.memory_consumption=128'; \ | ||
echo 'opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMTION}'; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo 'opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMTION}'; \ | |
echo 'opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMPTION}'; \ |
@@ -95,7 +96,7 @@ RUN { \ | |||
echo 'opcache.enable=1'; \ | |||
echo 'opcache.interned_strings_buffer=32'; \ | |||
echo 'opcache.max_accelerated_files=10000'; \ | |||
echo 'opcache.memory_consumption=128'; \ | |||
echo 'opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMTION}'; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo 'opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMTION}'; \ | |
echo 'opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMPTION}'; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're going to support opcache changes like this, we should probably also support opcache.max_accelerated_files
and opcache.interned_strings_buffer
since they're all part of the same setup checks in Server. Otherwise it'll be an incomplete enhancement.
See also #2185 (comment) |
No description provided.