Skip to content

Instantly share code, notes, and snippets.

@nvalerkos
Created August 20, 2023 17:05
Show Gist options
  • Save nvalerkos/a45cd484c95fda24e52871a978188296 to your computer and use it in GitHub Desktop.
Save nvalerkos/a45cd484c95fda24e52871a978188296 to your computer and use it in GitHub Desktop.
opcache config /etc/php/7.4/fpm/conf.d/10-opcache.ini
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=512
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=16000
opcache.revalidate_freq=60
opcache.validate_permission=1
opcache.use_cwd=1
opcache.revalidate_path=1
opcache.enable_file_override=1
opcache.fast_shutdown=1
@nvalerkos
Copy link
Author

test config with requests

ab -n 1000 -c 200 https://example.com

check usage with:
https://github.com/amnuts/opcache-gui

check config:
php -i | grep opcache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment