Last active
March 12, 2019 02:50
-
-
Save rfmeier/5360c4aa49ce2d1dd792 to your computer and use it in GitHub Desktop.
Enable opcache on DreamHost for php 5.5 and greater
This file contains 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
[opcache] | |
; the path to the .so file | |
zend_extension=opcache.so | |
; Enabled. Set to 0 to disable | |
opcache.enable=1 | |
; Max memory consumption. Default 32 megs | |
opcache.memory_consumption=32 | |
; The amount of memory to store immutible strings | |
opcache.interned_strings_buffer=4 | |
; Comments in code will not be compiled | |
opcache.save_comments=0 | |
; Comments will not be loaded | |
opcache.load_comments=0 | |
; Make sure each cached file has a distinct path | |
; See http://php.net/manual/en/opcache.configuration.php#ini.opcache.revalidate-path | |
opcache.revalidate_path=1 | |
; Check opcace when php uses file checking functions, file_exists, etc | |
; See http://php.net/manual/en/opcache.configuration.php#ini.opcache.enable-file-override | |
opcache.enable_file_override=1 | |
; Turn off cache experiation. | |
; See http://php.net/manual/en/opcache.configuration.php#ini.opcache.validate-timestamps | |
opcache.validate_timestamps=0 | |
; How long to check a file if it needs to be re-cached | |
; If opcache.validate_timestamps is disabled, this is ignored. | |
; See http://php.net/manual/en/opcache.configuration.php#ini.opcache.revalidate-freq | |
opcache.revalidate_freq=300 | |
; The max file size to be stored in cache | |
opcache.max_file_size=2097152 | |
; Use faster mechanism for shutting down | |
opcache.fast_shutdown=1 | |
; Specify the max number of files | |
opcache.max_accelerated_files=3907 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment