Created
January 30, 2023 17:16
-
-
Save tricarte/4061156f911a6a2e367ec3a8dd848b6e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; configuration for php opcache module | |
; priority=10 | |
zend_extension=opcache.so | |
opcache.memory_consumption=128 | |
; same string in one file can be used for other files to improve memory | |
; in MB | |
opcache.interned_strings_buffer=32 | |
; Max cached files | |
opcache.max_accelerated_files=10000 | |
; You have to manually invalidate cached files if this is 0 | |
opcache.validate_timestamps=1 | |
; If validate_timestamps is enabled | |
opcache.revalidate_freq=60 | |
opcache.revalidate_path=0 | |
opcache.fast_shutdown=1 | |
opcache.enable_cli=1 | |
opcache.enable_file_override=1 | |
opcache.save_comments=1 | |
# https://tideways.io/profiler/blog/fine-tune-your-opcache-configuration-to-avoid-caching-suprises | |
; opcache.memory_consumption=128 # MB, adjust to your needs | |
; opcache.max_accelerated_files=10000 # Adjust to your needs | |
opcache.max_wasted_percentage=10 | |
opcache.dups_fix=true | |
# Only below document root will be able to query opcache status | |
opcache.restrict_api=/var/www/localhost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment